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

Getting Information from the Print Dialog

edited April 2002 in General
I set the "ShowPrintDialog"Property of my Report to "true" and
i get a Dialog when i call "Print".

In the "OnPrintDialogClose" i would like to get access to the
user selections of that dialog. Especially i need to read the
range (all or selected) option.

If i use the print dialog from "Printers.pas" i can simply
access that information like this:

if (PrintDialog.PrintRange = prAllPages) then...

The RB print dialog doesn't offer that property. I could not
find a declaration of the "TppCustomPrinterDialog" object in
your online help. Is it missing?


Regards, Jens


--
Dynamo Software | www.dynamo-software.de | Deutschland
Jens-Erich Lange | phone 04551-967755 | Germany
Kurhausstrasse 63 | fax 04551-967766 | Allemagne
23795 Bad Segeberg | mobile 0170-4072996 | Schleswig-Holstein

Comments

  • edited April 2002
    You can access the page range information through the PageRequest property
    of the print dialog. For example.

    TppPageRequest(ppReport1.PrintDialog.PageRequest).PageSetting => the
    selection type
    TppPageRequest(ppReport1.PrintDialog.PageRequest).PageRequested =>
    requested page
    TppPageRequest(ppReport1.PrintDialog.PageRequest).PageList => requested
    page range

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.