Page 1 of 1

HTML Report Corrupted Image

Posted: Mon Nov 25, 2013 2:38 pm
by faddoul.antoine
Hello,

I created a stimulsoft report and added to the mrt file an image.
When exporting the report to PDF/Excel, the image is displayed properly, but when exporting the report to HTML, the image is corrupted.
Note that I am using the below code to define the image URL:

System.Configuration.AppSettingsReader cfg = new System.Configuration.AppSettingsReader();
string strImageURL = Convert.ToString(cfg.GetValue("LogoURL", typeof(System.String))).ToString();
objAccountsReport.imgLogo.File = strImageURL;


Please advise.
Thank you.

Re: HTML Report Corrupted Image

Posted: Tue Nov 26, 2013 6:02 am
by HighAley
Hello.

Which version of our product do you use?
Please, send us a sample report template with data which reproduces the issue.
Also send us screen-shot of the report exported to HTML.

Thank you.

Re: HTML Report Corrupted Image

Posted: Tue Nov 26, 2013 7:46 am
by faddoul.antoine
I am using the version 2013.
Attached is the solution.

Edited by admin: it's forbidden to upload on forum our licensed assemblies!

Thank you

Re: HTML Report Corrupted Image

Posted: Wed Nov 27, 2013 12:51 pm
by HighAley
Hello.

Your code works right. Could you describe what is wrong with your image when you use HTML export?

Thank you.

Re: HTML Report Corrupted Image

Posted: Tue Dec 03, 2013 8:46 am
by faddoul.antoine
The image is not displayed in the HTML page exported. It appears as blank.

Re: HTML Report Corrupted Image

Posted: Thu Dec 05, 2013 8:04 am
by HighAley
Hello.

Here is an exported report with image:
test.zip
(5.88 KiB) Downloaded 434 times
Try to save rendered report with SaveDocument() method is there an image?

Thank you.

Re: HTML Report Corrupted Image

Posted: Thu Dec 05, 2013 8:10 am
by HighAley
Hello.

There also was added a new export setting -- Embedded Image Data -- in our latest release.

Thank you.