Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Different Paper Sizes

edited May 2003 in General
If I design a report using A4 paper with a header, detail band and footer
and the user prints on Letter paper several records are being missed off the
bottom of each page. The report is previewed first and then printed using
the printer icon.

Is there any simple way of ensuring that all detail bands will be printed
regardless of the page size?

This is using Delphi 5, RB 6.02 and a variety of HP Printers.

John

Comments

  • edited May 2003
    The report needs to be reconfigured to print to a smaller or larger page
    size. You'll have to set the Report.PrinterSetup.PaperName to Letter or A4
    before printing the report. if you have static height controls or controls
    beyond the available space when moving to a smaller paper size, then you'll
    lose those controls. You should reposition the layout or create two
    templates. One for A4 and one for Letter size paper so that your controls
    will fit as you would like them to be and for the best use of space on the
    paper.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited May 2003
    Jim

    you'll

    Sorry if this a FAQ but is there a way to determine which papername the user
    hasselected in the onprintdialogclose event ?

    John
  • edited May 2003
    You have to reference the print dialog's printer object to get its printer
    setup in the OnPrintDialogClose event.

    uses
    ppPrintr;
    ...
    TppPrinter(Report.PrintDialog.Printer).PrinterSetup.PaperName


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.