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

paper size control again

edited March 2004 in General
Problem restate:
I have some reports which are printed in 12" or 14" pre-printed form by
Espon LQ1170+ dot matric printer. Sometimes the printouts are correct, but
sometimes the page break is in the wrong page length. I have not used
template. The problem happened in calling the report directly from the
preview and
archives.
I set pplist.PrinterSetup.PaperHeight:=14; before calling pplist.print;

Question:
1. How and Where should I set the page length?
2. Any sample codes?

Thanks Advance!

Benson Wong
D5, RB6.03 Ent., Win2000 pro, Espon LQ1170+

Comments

  • edited March 2004

    The Report.PrinterSetup.PaperHeight controls the paper length for the
    report. If all pages of the report are the same height, then you should be
    able to set this property prior to calling report.Print and then it should
    just work.

    If you need to modify the printer setup while the report is printing, use
    the Report.BeforePrint or Report.OnStartPage events to set the
    Report.Engine.Page.PrinterSetup properties.

    When an archive (.raf file) is created the paper height is saved with the
    archive. When the first page of the archive is read, then the
    ArchiveReader.PrinterSetup is initialize. To override this you need to use
    the OnInitializePrinterSetup event to set the ArchiveReader.PrinterSetup
    properties.



    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.