简体   繁体   中英

Crystal Report Formatting and Printing

I am using Crystal Reports to generate an invoice. What I want to do is to print duplicate copies of the small invoice on the same A4 size sheet, one on the top and other on the bottom. I have tried settling with just one copy on the invoice by setting paper size to A3 but it always prints it in Landscape mode, I will be satisfied even if it prints on the top half of the paper only. My client wants to save paper and the invoices are also small. Please suggest me how can I achieve this?

Assuming that you want to print the same invoice # twice, once on the top half of the paper and once on the bottom half, you could try this:

  • design your report such that it will fit in half an A4 page; save it (I'll call it invoice.rpt)
  • insert a section details section
  • add a subreport to this section (details b), choosing invoice.rpt (inserting a copy of a report into itself)
  • link main to subreport on invoice #
  • format subreport, check 'Re-import When Opening'; this will ensure that the subreport is always current

If you make changes to the main report, save the changes, then re-open the report--the subreport should have the changes. You may need to suppress some of the sections in the subreport.

Otherwise, you'll need to do handle this in code.

Please try this one as it worked for me.

Go to page setup and set vertical pixel on 5.47 or 5.(as per your requirement) for A4 page . Check image for exact detail.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM