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

display image in preview but nothing when printing

edited April 2006 in General
how can i tell whether the report is actually being printed or simply being
viewed on screen?

I want to show an image on a report preview the people can click on to view
a detailed report but when actually printing I want to hide this so it is
not printed on the paper report. I can basically set the image visible on
or off to hide or show it but which event is the best to distinguish whether
it is on screen or printing ( including from the screen preview)?

Comments

  • edited April 2006
    Hi Paul,

    Try using the Report.BeforePrint to check the device used. For instance, if
    you require your users to use our print dialog before they print to paper,
    you could check the Report.PrintDialog.DeviceType property. If this is
    "Printer" then you can set the visibility of the image to False.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2006
    ingenious - thanks

This discussion has been closed.