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

Question about Paper Size

edited May 2002 in General
Hi,

I'm Report Builder's new user.

What can I do to know what kind of paper was
selected by the user before the print.

I have been looking the "Tech Tip: Controlling the Printer",
but using "myprinter.showsetupdialog" doesn't show the
page range to print.

Can you help me ?

RB Std 6.03
Delphi 5 pack 1
Windows ME
Epson Stylus color 777


Thank you.

Romano X. Pittas
rxp@pobox.com

Comments

  • edited June 2002
    The PrinterSetup object is assigned from the Report to the TppPrinter object
    of the PrintDialog. When then user changes the PrinterSetup, it is not
    reflected in the Report's PrinterSetup, unless Report.SavePrinterSetup is
    true. When SavePrinterSetup is true, then the changes the user makes to the
    PrinterSetup will be reflected the next time the user prints from the
    current instance of the Report. To access the PrinterSetup the user has
    entered, perform the following in the Report.OnPrintDialogClose event.

    uses
    ppPrintr;

    procedure TForm1.ppReport1PrintDialogClose(Sender: TObject);
    begin
    TppPrinter(ppReport1.PrintDialog.Printer).PrinterSetup;
    end;


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited June 2002
    Jim,

    Thank you, your reply was very helpfull.

    Regards,

    Romano.


This discussion has been closed.