Home General

Watermark on TppReport and TppArchiveReader

edited September 2017 in General
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!

Comments

  • edited September 2017
    Hi Carsten,

    For the archive reader, you need to use the OnReadPage event. This
    ensures each page will receive your manually created drawcommand.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2017
    Sounds good,

    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!
  • edited September 2017
    Hi Carsten,

    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).

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.