Is it possible to print a watermark (with page-style) on an existing output using archive reader or can this be done in another way? I am using ReportBuilder 7.03 for Delphi 6.
Unfortunately there are no good events on the actual ArchiveReader object to add a DrawCommand to every page. However you can tie into the TppDevice.OnPageReceive event and use this event to add a watermark to each page in your archive. The best place to add this event would be in the OnBeforePrint event of the ArchiveReader. This way you can ensure the screen device has been created.
We do something similar in our demo versions of ReportBuilder by adding a watermark to every page in the ReceivePage event of the ScreenDevice if you have not registered. To see how this is done, see the AddWaterMark routine located in the ppViewer.pas file.
Comments
Unfortunately there are no good events on the actual ArchiveReader object to
add a DrawCommand to every page. However you can tie into the
TppDevice.OnPageReceive event and use this event to add a watermark to each
page in your archive. The best place to add this event would be in the
OnBeforePrint event of the ArchiveReader. This way you can ensure the
screen device has been created.
We do something similar in our demo versions of ReportBuilder by adding a
watermark to every page in the ReceivePage event of the ScreenDevice if you
have not registered. To see how this is done, see the AddWaterMark routine
located in the ppViewer.pas file.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com