Getting Information from the Print Dialog
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
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
This discussion has been closed.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com