watermark from datasource

Stimulsoft Reports.NET discussion
Post Reply
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

watermark from datasource

Post 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.
Using Stimulsoft since 2007
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

watermark from datasource

Post 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.
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

watermark from datasource

Post by JorisWils »

Thx a lot man.
This fixed my problem.

Using Stimulsoft since 2007
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

watermark from datasource

Post by Ivan »

Hello,

Let us know if you need any help.

Thank you.
Post Reply