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

How do I find the OutPut Device?

edited September 2003 in General
I have a report, which I set the TppReport.Device to dvScreen so that I cna
print preview. When I go to print (from the Preview screen), my report
still shows the device as dvScreen.

Basically, I want to hide some components when the report goes to the
printer, but display them in Print Preview.

Thanks

Comments

  • edited September 2003

    In the Report.BeforePrint event check

    if (Report.PrinterDevice <> nil) then
    {printing to the printer}



    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited September 2003
    Thanks - But using that check, I will lose the components when I an done
    printing and are back at PrintPreview, won't I?
This discussion has been closed.