HTML Report Corrupted Image

Stimulsoft Reports.NET discussion
Post Reply
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

HTML Report Corrupted Image

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: HTML Report Corrupted Image

Post 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.
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Re: HTML Report Corrupted Image

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: HTML Report Corrupted Image

Post by HighAley »

Hello.

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

Thank you.
faddoul.antoine
Posts: 16
Joined: Mon Sep 24, 2012 7:08 am

Re: HTML Report Corrupted Image

Post by faddoul.antoine »

The image is not displayed in the HTML page exported. It appears as blank.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: HTML Report Corrupted Image

Post by HighAley »

Hello.

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

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: HTML Report Corrupted Image

Post by HighAley »

Hello.

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

Thank you.
Post Reply