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

paper size question again

edited January 2004 in General
Problem description:
I have 2 reports, one uses 14 inch length and one uses 12 inch length. The
reports are printed to Espon LQ1170 printer by continuous paper.
I set the paper length by:
ppReport.PrinterSetup.PaperHeight:=12;
or
ppReport.PrinterSetup.PaperHeight:=14;

Each time I execute the report to screen or printer by
ppReport.print;
ppReport.reset;

Question:
1. After I run and exit the report (14"), I found the paper size is not set
back to windows default setting. It is still in 14" paper length?
2. When I set the paperheight, anything else I should set (eg. bottom margin
or print region)?
3. If I set the paperheight in my report program (14"), the output by print
to screen or print to printer should be in 14" no matter my printer default
setup?

Pls. help.

Benson
D5, RB6.03

Comments

  • edited January 2004
    Hi Benson,

    1. Yes, calling Report.Reset will have no effect on the PrinterSetup. If
    you set the PaperHeight to be 14" before you call Report.Print, it will
    remain 14" until you change it.

    2. By default ReportBuilder sets the margins to be 1/4 inches which usually
    is the threashold of most printers' printable area. If you would like your
    margins further in, you will need to set these properties as well.

    3. Yes, setting the PaperHeight will override your printer's default print
    settings on screen and when printing. ReportBuilder uses your printer
    driver to render a report to the screen as well as to your printer.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2004
    Question:
    1. What is the purpose of Report.Reset?
    2. if I set Report.PrinterSetup.PaperHeight:=14 in my report, after close
    the form (Report object should be free). Will the Windows printer is in 14"
    or back to the original value? if in 14", how I reset this to the original
    value?
    3. I have a invoice printout program which will print 2 copies continously
    by setting copy=2: 1 is "MASTER" and the other is "DUPLICATE". When I print
    serveral invoices eg. from I0001 to I0010. How can I control the output is
    I001MASTER,I001DUPLCIATE, I002MASTER,I002DUPLICATE....?

    Pls. help
    Benson.


  • edited January 2004
    Hi Benson,

    1. The purpose of Report.Reset is to reset the Report engine and any caching
    that may have occurred during report generation. A user will generally use
    this method when changing dataset information or calculations after
    Report.Print has been called.

    2. If you set the PaperHeight at runtime for your report, then close the
    form, the PaperHeight will then be reset to its original value. Remember
    this will only occur when you set this value at runtime. If you set the
    PaperHeight at designtime using the Object Inspector, the value will remain,
    even if you close the form. In your case I would always set the PaperHeight
    at runtime.

    3. Check out the following example on how to include unique captions for
    each copy of a report you print. This should get you on the right track.

    http://www.digital-metaphors.com/tips/UniqueCaptionForEachCopy.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.