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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 