Watermark on TppReport and TppArchiveReader
Hi,
as mentioned in
http://www.digital-metaphors.com:8080/Delphi_Code/Formatting/How_To...Manually_Add_a_Watermark_to_a_Page
we use the onEndPage-Event of a report in order to create a watermark
on each copy of the report if it is printed (no in preview)
We also store these reports as archives. The user can reload these
files
and preview. Works as well as just generating the report
But on printing the report from the archive watermarks are missing.
Unfortunately TppArchiveReader.report is aTppProducer which has no
Event "onEndPage".
Any idea what i can do?
TIA Carsten
--
Hint: We altered the sources!Hint: We altered the sources!
as mentioned in
http://www.digital-metaphors.com:8080/Delphi_Code/Formatting/How_To...Manually_Add_a_Watermark_to_a_Page
we use the onEndPage-Event of a report in order to create a watermark
on each copy of the report if it is printed (no in preview)
We also store these reports as archives. The user can reload these
files
and preview. Works as well as just generating the report
But on printing the report from the archive watermarks are missing.
Unfortunately TppArchiveReader.report is aTppProducer which has no
Event "onEndPage".
Any idea what i can do?
TIA Carsten
--
Hint: We altered the sources!Hint: We altered the sources!
This discussion has been closed.
Comments
For the archive reader, you need to use the OnReadPage event. This
ensures each page will receive your manually created drawcommand.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
how can I determine where it is a page of the first copy or the any
other later.
Watermark should not be printed on first copy, but all others?
Nico Cizik (Digital Metaphors) machte diesen Vorschlag :
--
Hint: We altered the sources!Hint: We altered the sources!
The OnReadPage event gives you a reference to the TppPage object being
printed. From there you should be able to determine which pages have
been printed and how many times.
I suggest creating a list of page numbers and using that to determine
which copy you are printing (depending on your collation setting).
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com