I'm unsure how your application is set up but I assume that in most cases a user that creates and views a report in the Previewer, will print from the Previewer. The alternative is most likely a button or option to print directly from the main app. In the first case you can simply check if Report.PreviewForm is not nil. In the second you can set a flag before Report.Print is called if the devicetype is anything other than the screen.
Comments
I'm unsure how your application is set up but I assume that in most cases a
user that creates and views a report in the Previewer, will print from the
Previewer. The alternative is most likely a button or option to print
directly from the main app. In the first case you can simply check if
Report.PreviewForm is not nil. In the second you can set a flag before
Report.Print is called if the devicetype is anything other than the screen.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com