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

How do I: Change Paper Size programmatically??

edited September 2001 in General

Hi,
I am interested in allowing my user to pick what paper size he/she wants to
use.
I found the PrinterSetup sub object in the TppReport.

I display a list using ppReport.PrinterSetup.PaperNames list.
I then set the PaperName property to whatever they select.

But when I open the printer preview dialog, it doesn't seem to reflect the
settings I made in my code.

Do I have to set other properties in addition to this?


thanks,
Sincerely,
John Scalco

Comments

  • edited September 2001

    1. Make sure that you doing this prior to calling Report.Print.

    2. The name must match exactly one of the names from
    report.PrinterSetup.PrinterNames[]



    Best regards,

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