Method for generating report through WPF interface and report engine

A technology of interface generation and report, which is applied in special data processing applications, instruments, electrical digital data processing, etc., can solve problems such as the inability to realize report WYSIWYG, weak editing functions of third-party controls, and incorrect calculation of report statistics. Achieve the effect of convenient style layout and statistics, lower learning threshold, and convenient data exchange

Inactive Publication Date: 2017-09-29
UNIV OF SCI & TECH LIAONING
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The advantage of exporting data to excel to generate reports is that the report can be easily modified, but the disadvantage is that the modified data cannot be saved in the database, resulting in a mismatch between the modified report and the data in the database. possible miscalculation
[0004] The advantage of using a third-party control to generate a report is that the print report is printed strictly according to the program settings, but the disadvantage is that the editing function of the third-party control is weak, and the "what you see is what you get" of report modification cannot be realized. When the report does not meet the requirements, you need to return to Modify the page and re-modify; another disadvantage is that the data of each field in the report is saved in the database, and the style of the report cannot be saved
When the report template in the software changes, the report style printed again in the software may be different from the original style

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for generating report through WPF interface and report engine
  • Method for generating report through WPF interface and report engine
  • Method for generating report through WPF interface and report engine

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment 1

[0119] Specific embodiment 1: Take various operations of the report "Construction Unit Self-evaluation Form" as an example. The interface of "Construction Unit Self-evaluation Form" is as follows: Figure 9 .

[0120] The steps to create a new "Construction Unit Self-assessment Form" report template are as follows:

[0121] 1) Create a code file of UserControl type in the code integrated development environment, and change the base class to the report template base class.

[0122] 2) According to the requirements of the report, realize the report style. The report uses the grid to divide and layout the page, and puts the corresponding controls where information needs to be entered. If the background code needs to call the control, enter the identifier string of the control in the tag tag of the control. For example, place a TextBox control for the unit project name and branch project name, place a TextBox control for the process number with the identifier "txtProcessID", p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method for generating a report through a WPF interface and a report engine. The structure of the report engine comprises a report template base class and a report management module; the report template base class inherits from the System.Windows.Controls.UserControl class, a public method of the report template is abstracted, and all report templates inherit from the report template base class. The public method comprises the steps of initial loading operation, loading operation, verification operation, statistics operation, search operation and print report object obtaining operation; the report management module defines four basic operations abstracted for common report functions and comprises a new report, a load report, a serialized report and a print report. The operation objects of the four operations are objects of the report template base class, and after the report template objects are transformed into the report template base class objects, the polymorphism of the operations is achieved. The WPF interface serves as a uniform interface of the report, and the design effect of 'what you see is what you get' of the report is achieved.

Description

technical field [0001] The invention relates to the technical field of report processing, in particular to a method and a report engine for generating reports using a WPF interface. Background technique [0002] In WPF programs, there are often application scenarios for generating a large number of reports in different formats. Currently, there are two common methods for WPF programs to generate reports: one is to export data to excel to generate reports; the other is to use third-party controls to generate reports. [0003] The advantage of exporting data to excel to generate reports is that the report can be easily modified, but the disadvantage is that the modified data cannot be saved in the database, resulting in a mismatch between the modified report and the data in the database. Possible miscalculation. [0004] The advantage of using a third-party control to generate a report is that the print report is printed strictly according to the program settings, but the di...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F17/24
CPCG06F40/18
Inventor 梁妍吴杰
Owner UNIV OF SCI & TECH LIAONING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products