| Statements is the enterprise data information to show the most common form ofexpression, is a necessary part of enterprise information, report development has become animportant part of the whole management information system development. Howevertraditional reporting tools in the design of the report use the way such as drag-and-dropcontrols need to define a large number of parameters, makes the process very heavy workload.And, in many reports, traditional reporting tools in the form of statements and documentsone-on-one, lead to report to show more than you need to call in the process of document,extended the report generation time, reduce the efficiency of the system.In this paper, the current common reporting tools are analyzed, in view of the reportdesign workload is big, the problem of low efficiency of report generation, combined with thenine types of statements define statements automatically generated is achieved, the binary treeand XML document organization, define more statements, put forward and realized the reportmodel based on binary tree.According to the idea of the report model based on binary tree, this article USES the c#programming language, Microsoft VisualStudio.NET and Altova XMLSpy and otherdevelopment tools, the report generator was designed and implemented. A core part of thegenerator is:Different depending on the type of report, the parameters of the definition must be, tocomplete the report automatically generated;Using the template method pattern organization nine types of statements define;Binary tree is used to calculate and store multiple copies of statements of the actualdisplay area of the positional relationship between the data and report;Using an XML document storage style definition information, organize more statements,decrease the number of calls for documentation, improve the efficiency of entry of the show;Using data access technology, ADO.NET provides a unified interface to a variety of datasources data.Finally through an application example to verify the report generator can better solve thereport cannot be generated automatically, design work and report to show the problem of lowefficiency. The main content of the thesis are as follows:The first part mainly for the topic research background, research status at home andabroad and the main content of the research is presented.The second part introduces the basic knowledge of statements, including statements ofdefinition, content, format and classification, and the summary reporting tool.The third part of the XML technology are introduced, including the basic knowledge ofXML, the data structure and characteristics, as well as XML in. The use of methods suchas.net.The fourth part of this article are to realize report model and the generator are analyzedin theory, is introduced, and the binary tree is introduced in detail in the report generationprocess after and nine types of report form design and the organization methods.The fifth part introduces the design thought and implementation method of generator.User-defined module is introduced, the control module design, XML parsing module, querymodule, calculation module and display module, the six modules of the detailed designmethod.The sixth part, by a practical example proves the feasibility of the generator, summarilyshowed the process of report generation.Finally in the summary section of the paper, the deficiency of this generator is proposed. |