Unlock instant, AI-driven research and patent intelligence for your innovation.

Report printing method

A technology for reporting and printing pages, applied in the direction of program control devices, etc., can solve problems such as error-prone, cumbersome process, and inability to meet the requirements of WYSIWYG for report printing, and achieve the effect of strong practicability and easy realization

Inactive Publication Date: 2011-05-11
ZTE CORP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The process of customizing templates is cumbersome and error-prone. At the same time, the use of templates solidifies the printing style and format, which cannot meet the user's demand for report printing WYSIWYG

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
  • Report printing method
  • Report printing method
  • Report printing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] see figure 1 , this figure shows the flow chart of the report printing method of the present invention, specifically:

[0027] 101. Use the javax.swing.JTable control to extract relevant data information from the table to be printed, including the header information, footer information, number of columns, column width, and table data of the table to be printed, where the header information includes the title There are two parts: information and table description information.

[0028] 102. Set the size and orientation of the printed page, and the default line height. The size of the printed page can generally be set to the size of A4 paper (842pixel, 595pixel), that is, the drawable area of ​​the page; the direction of the printed page can generally be set to the positive direction of the Y-axis in the downward direction, and the positive direction of the X-axis in the rightward direction.

[0029] 103. Generate an empty print page, and then first calculate the coordin...

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 discloses a report printing method, comprising the following steps of: (1) extracting relevant data information from a table to be printed; (2) generating a blank print page, calculating the coordinate position of the page head and the page foot of the table to be printed in the print page and setting the information of the page head and the page foot at the corresponding position in the print page; (3) generating an initial grid in the print page according to the default line-height, the size of the print page and the proportion of the row number and row width of the table to be printed; (4) adjusting the height of each line in the grid according to the table data of the table to be printed and setting the corresponding data into the grid; and (5) drawing the generated print page and carrying out print preview and printing. The adoption of the invention can generate the page of print preview intelligently according to a java table and carry out printing, meets the need of users for the printing of a common report table, has stronger practicability and is easy to realize.

Description

technical field [0001] The invention relates to a report printing method. Background technique [0002] In the network management system, report printing is an important way of outputting report information. In the current report printing method, the format, data, and numerous attribute information of the report are generally described by customizing a report template, and then a printed page is generated according to the template. The process of customizing templates is cumbersome and error-prone. At the same time, the use of templates solidifies the printing style and format, which cannot meet users' needs for what you see is what you get when printing reports. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a more general report printing method, [0004] Has strong practicability. [0005] In order to solve the problems of the technologies described above, the present invention is achieved through the follo...

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/44
Inventor 喻金石
Owner ZTE CORP