Print Dialog - Print To File
RB Ent 11.08, Delphi 6.
This is related to my earlier question that you answered, "Show Print To
File Setup". (That has worked fine, by the way, thanks).
How can I tell if the user has selected the "Print To File" option from the
Print Dialog? I thought I'd be able to test the ppReport.DeviceType property
in the BeforePrint event, but this is still set to 'Printer', even though it
prints to file when you press OK.
Ideally, I'd like to be able to know which device type the user selected
from the drop down list.
I put a breakpoint in and checked through the reports' properties in
Delphi's Debug Inspector but could not see any clues.
Thanks,
Jason.
This is related to my earlier question that you answered, "Show Print To
File Setup". (That has worked fine, by the way, thanks).
How can I tell if the user has selected the "Print To File" option from the
Print Dialog? I thought I'd be able to test the ppReport.DeviceType property
in the BeforePrint event, but this is still set to 'Printer', even though it
prints to file when you press OK.
Ideally, I'd like to be able to know which device type the user selected
from the drop down list.
I put a breakpoint in and checked through the reports' properties in
Delphi's Debug Inspector but could not see any clues.
Thanks,
Jason.
This discussion has been closed.
Comments
Inside the Report.OnPrintDialogClose, you can check the
Report.PrintDialog.DeviceType property to see which file device the user
selected.
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I think the TppReport.FileDevice property shows what you want
HTH
--
Arno
Jason.