Creating WaterMark at Runtime
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.
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.
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com