How To…Manually Add a Watermark to a Page


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


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.


Sample Delphi code: