How To…Manually Add a Watermark to a Page

Question

“How can I add a watermark to a page in code without using the PageStyle band?”

Solution

Use the Report.OnEndPage event to create the drawcommands needed and manually add them to the page.

Note: If you would like the watermark to appear behind the rest of the report components, create a Page Style and use its BeforePrint event instead.

Download:
WaterMark.zip
WaterMarkBehind.zip

Sample Delphi code: