Page 1 of 1

watermark from datasource

Posted: Tue Jun 30, 2009 7:58 am
by JorisWils
Hi

Is it possible to set the page watermark's image from datasource?

We now have a table with that contains images. It would be very usefull for us if we could select our image from the database instead of selecting an imagefile on the hard drive.

More in detail:
We have a customertable. Each customer has a few images like a large logo, small logo etc.
We would like to set this logo as a watermark on the report.

watermark from datasource

Posted: Tue Jun 30, 2009 6:36 pm
by Edward
Hi,

No problem, please use the following code in the BeforePrint event of the Page:

Page1.Watermark.Image = StiImageHelper.GetImageFromObject(MyDataSource.MyDatacolumnWithImage);

Thank you.

watermark from datasource

Posted: Mon Jul 06, 2009 8:48 am
by JorisWils
Thx a lot man.
This fixed my problem.


watermark from datasource

Posted: Wed Jul 08, 2009 7:47 am
by Ivan
Hello,

Let us know if you need any help.

Thank you.