Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
how I can show some objects in preview screen only without printing them
rbuser
January 2007
edited January 2007
in
General
Hello,
I wonder what method should I use to display some objects in preview screen
only without printing them
thanks
Comments
nicocizik
January 2007
edited January 2007
Hi Isaac,
Inside the Report.BeforePrint event, check that the ppReport.PrinterDevice
is not nil. If it isn't, you know that the report is being printed to the
printer and you can toggle the visibility of the objects you do not want to
show up.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Best Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
rbuser
January 2007
edited January 2007
it did not work
I used this code:
if (report.PrinterDevice = 'Printer') then
line1.visible := false;
but line1 still appear in printing
any other ideas
thanks
nicocizik
January 2007
edited January 2007
Hi Isaac,
Please re-read my original post.
if (Report.PrinterDevice <> nil) then
Line1.Visible := False
else
Line1.Visible := True;
--
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.
Comments
Inside the Report.BeforePrint event, check that the ppReport.PrinterDevice
is not nil. If it isn't, you know that the report is being printed to the
printer and you can toggle the visibility of the objects you do not want to
show up.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I used this code:
if (report.PrinterDevice = 'Printer') then
line1.visible := false;
but line1 still appear in printing
any other ideas
thanks
Please re-read my original post.
if (Report.PrinterDevice <> nil) then
Line1.Visible := False
else
Line1.Visible := True;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com