How do I know if there's an attached ppViewer on a ppReport ? Because I want to call ppReport.PrintToDevices if there's an attached ppViewer. Otherwise, I will simply call ppReport.Print.
The report object does not have any knowledge of a viewer being connected to it. My suggestion would be to loop through all the components on your form and if it is a TppViewer, check the Report property. If this matches up to the report that you are about to print, then you will know that it is connected to a Viewer.
Comments
The report object does not have any knowledge of a viewer being connected to
it. My suggestion would be to loop through all the components on your form
and if it is a TppViewer, check the Report property. If this matches up to
the report that you are about to print, then you will know that it is
connected to a Viewer.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com