Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and report engine for generating reports using wpf interface

A technology for interface generation and report, which is applied in the direction of user interface execution, word processing, program control devices, etc., can solve the problems that the report style cannot be saved, the report WYSIWYG cannot be realized, and the third-party control editing function is weak, etc., to achieve convenience Expansion and data exchange, convenient style layout and statistics, and rapid development

Inactive Publication Date: 2020-07-03
UNIV OF SCI & TECH LIAONING
View PDF2 Cites 0 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
  • A method and report engine for generating reports using wpf interface
  • A method and report engine for generating reports using wpf interface
  • A method and report engine for generating reports using wpf interface

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-assessment 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) Realize the report style according to the requirements of the report. 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", pl...

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 present invention provides a method and a report engine for generating reports using a WPF interface. The structure of the report engine includes two classes: a report template base class and a report management module; wherein, the report template base class inherits from System.Windows.Controls. The UserControl class abstracts the public methods of the report template, and all report templates inherit from the report template base class. The public methods include: initial loading operation, loading operation, verification operation, statistical operation, search operation, and operation of obtaining and printing report objects; the report management module defines four basic operations abstracted for commonly used report functions, including: new Reports, load reports, serialize reports, print reports. The operation objects of these four operations are the objects of the report template base class. After the report template object is transformed into the report template base class object, the polymorphism of the operation is realized. The WPF interface is used as the unified interface of the report to realize the design effect of "what you see is what you get" for the report.

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 Patents(China)
IPC IPC(8): G06F9/451G06F40/18
CPCG06F40/18
Inventor 梁妍吴杰
Owner UNIV OF SCI & TECH LIAONING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products