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

Image as Watermark over whole page (even margins)

edited February 2011 in General
Hello,

I found the "How To...Manually Add a Watermark to a Page"
http://www.digital-metaphors.com:8080/Delphi_Code/Formatting/How_To...Manually_Add_a_Watermark_to_a_Page

In this example a TppDrawText is directly linked to
"ppReport1.Engine.Page", not to a band. When setting TppDrawText.Left to
0, it is possible to have the text at the uttermost left of the page.
With this I can have text even outside the margins of the report. Good.

I would like to have an image as a watermark rather than a text.
Unfortunately, TppImage has no property "Page", it has only a property
"Band".

When the TppImage is linked to the Page Style band, it is not possible
to have the image outside the margins (e.g. by setting TppImage.Left to
-20) . But this is exactly what I need.

How can I have a watermark picture over the WHOLE report page?

I'm using ReportBuilder 10.09.

Thanks in advance
Klaus

Comments

  • edited February 2011
    Hi Klaus,

    The example creates a DrawCommand (TppDrawText) which is positioned directly
    on a report page. A TppImage is a report component which is positioned
    relative to a band. If you would like to add a watermark image, you will
    need to create a TppDrawImage drawcommand, assign it's properties and add it
    to the page similar to the example.

    See the ppDrwCmd.pas file for the TppDrawImage definition.



    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.