Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The report tool can easily handle the matching of bills.

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

In the actual project development, many cases will involve the printing of bills. That is, on a printed blank bill, the contents of the bill are printed accurately. With traditional reporting tools, we usually use a ruler to measure the location of each data area, and then design the location of each grid on the screen according to the size measured by the ruler, and debug it repeatedly. However, it is time-consuming and laborious to make a printed report in this way, and once the format of the bill changes, the report maker will have to reproduce the report.

Next, the editor will introduce to you a popular artifact that can easily solve set-up problems-embellish report (don't ask the editor why he is so enthusiastic-wayward!) This artifact uses the scheme depicted in the base map to solve the problem of report drawing. The specific operations are as follows:

First, prepare to scan the blank bill.

Note: the scanner is in pixels to ensure that it is the same as the standard paper size, and the scanning resolution is generally 72dpi. Get a blank ticket picture as shown below:

Among them, the invoice name, the form line and each title in the form are all blank invoices that have been printed, and the report needs to be filled in to generate a blank part.

Next, start making the report.

The first step is to create a new blank report and insert the background image (select "report-report Properties-other-background image-URL or expression" on the menu bar, then select the ticket scanner you want to use as the background image, and finally select "OK").

Then, we adjust the row height and column width of the report so that the cells to fill in the data in the report correspond to the blank area of the scanned piece, for example, C2 cells correspond to "invoice units", D5 cells correspond to "dates", etc., as shown in the blue font. In this case, the string is filled in directly, and it can also be read from the corresponding dataset in practical application.

Next, set "print background" and "report is not paginated" in report Properties. As shown below:

Finally, save the report and you can display and print.

All right, a perfect document statement will be completed. Let's review the key operations:

1. Blank bill reference

two。 Print background map

3. Chart making

Finally, a warm reminder:

Different scanners have different size units, and if you do not select the scanned pixels during scanning, the scanned images will be much larger.

Solution: set pixel units when scanning so that the final picture is the same as the target paper size, or use drawing software to compress the image to the target paper size according to the printer's resolution.

The pixel conversion method is as follows: pixel points = paper width (mm) * 25.4 (converted to inches) * resolution (commonly used printer is 72dpi)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report