Dynamic image loading from GIF/JPEG in compiled report

Stimulsoft Reports.NET discussion
Post Reply
Eugene
Posts: 28
Joined: Sat Aug 12, 2006 9:11 am
Location: Ekaterinburg, Russia

Dynamic image loading from GIF/JPEG in compiled report

Post by Eugene »

Hi,

I'm distributing my reports via compiled dll files. I need to include an image (an organiztion stamp as an image file) into report. Is it posibled to dynamically fetch an image from a GIF or JPEG file (GIF is preferable thanks to possibliity of transparency) to a report while filling it with data.

Actually not to publish an image file would be better. I have develpoped a program that compiles all my reports in a folder into dll's. So it would be easier if I can do the following in the program 1. load a report from *.mrt file, 2. load an image from GIF/JPEG, 3. compile a report with the image so one can not modify it.

If all that is not possible, I guess, the best solution would be to store an image in the database and load it when rendering a report, is that possible?

Thanks,

Sincerely,
Eugene
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Dynamic image loading from GIF/JPEG in compiled report

Post by Vital »

You can assign image before report compiling. You can assign image to variable (image type) or directly to image component. For example:

Code: Select all

StiImage imageComp = report.GetComponents()["Image1"] as StiImage;
imageComp.Image = myImage;
Thank you.
Post Reply