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

Creating WaterMark at Runtime

edited January 2006 in General
I want to dynamically create a watermark for all of my reports so our group
does not have to edit the existing reports nor remember to do this for all
future reports.

I've added a btPageStyle Band to my report. The PageStyle.IsActive property
returns true. I then added a label with the owner set to the newly created
PageStyle Band. I then set the size, location, color (Black for now),
visibility, and caption. When running the program, no watermark displays or
prints. What have I missed? I am currently running version 9.02
Professional Edition.

Comments

  • edited January 2006
    Hi Jeff,

    Be sure you set the Band property of the label in order to display it in the
    proper band. The owner of the label should be set to the form.

    As an alternative, take a look at the TppScreenDevice.AddWaterMark routine
    located in the ppViewr.pas file. This shows how to manually add a
    watermark for each page. In RB this is used to add the Demo version
    watermark.

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