>How can I add a watermark ("demo") in my report programatically?
>I'm using the new ReportListeners.
>I need to do this programatically because all my reports are printed from a class. By this way, the only thing I need to do is put the necessary code in a method of the class instead of change each report.
Try putting code in the BeforeReport method of the listener to programmatically add the watermark object to the report. Make use of the _FRXCursor class in the FFC directory of VFP. This class has methods that help you manipulate an FRX file.
If you don't want to alter the original report you will have to make a copy and alter the copy instead of the original.
If you happen to be attending DevCon, I just put together a session that includes a sample on how to run reports based on a "template". The template can have page heading and page footing object, as well as a watermark. When you run a report, you just tell it what template to merge together for the final report. All source code will be made available to attendees.