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

Attached ppViewer

edited January 2007 in General
Hello !

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.

Thanks !

Comments

  • edited January 2007
    Hi Deck,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.