I am using the OnPagePainting event to add a watermark on each pages. It works fine on preview and print but not on export. How can I resolve it or any others way to add watermark on exported format?
stipage.pagepainting event does not work on export
-
- Posts: 10
- Joined: Sun Apr 05, 2009 5:54 am
- Location: Hong Kong
stipage.pagepainting event does not work on export
Hi
You will receive a watemark in the exported document if Page.Watermark.Image property contain that image you need to draw. Is it possible to modify the report template (mrt file) and add a watermark to it?
You can also use the following code:
Thank you.
You will receive a watemark in the exported document if Page.Watermark.Image property contain that image you need to draw. Is it possible to modify the report template (mrt file) and add a watermark to it?
You can also use the following code:
Code: Select all
StiReport report = new StiReport();
report.Compile();
report.CompiledReport.Pages[0].Watermark.Image = Image.FromFile(Application.StartupPath+ "\\sunny day.jpg");
report.Show();