Hi,
I have a report with image control on it. Am trying to load image dynamically to the report through code..Is there a way to do it?.. if so please help me. Am getting some Report.ReportIntialisation failed error..
How to load and image dynamically to a report
How to load and image dynamically to a report
Hello,
You can add Image component in report and use the following code:
Also you can see the article on our knowledgebase
http://stimulsoft.helpserve.com/index.p ... icleid=115
Thank you.
You can add Image component in report and use the following code:
Code: Select all
StiReport report = new StiReport();
report.Load("e:\\Report.mrt");
StiImage stiImage = report.GetComponents()["Image1"] as StiImage;
Image myImage = Image.FromFile(@"e:\Image.jpg");
stiImage.Image = myImage;
report.Show();
http://stimulsoft.helpserve.com/index.p ... icleid=115
Thank you.