Export to image not working

Stimulsoft Reports.Silverlight discussion
Locked
kfabian1909
Posts: 2
Joined: Tue Sep 17, 2013 6:38 am

Export to image not working

Post by kfabian1909 »

Hello,

when I try to use the StiReport.ExportDocument function with one of the image types in a pure Silverlight project, the Stream I receive is always empty. However exporting to other formats like PDF works fine.

Thanks for your help
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Export to image not working

Post by HighAley »

Hello.

Sorry, but we couldn't reproduce your issue.
Which version do you use?
Could you describe how to reproduce it or it's better if you will send us a sample project.

Thank you
kfabian1909
Posts: 2
Joined: Tue Sep 17, 2013 6:38 am

Re: Export to image not working

Post by kfabian1909 »

I'm using Stimulsoft Reports Ultimate 2013.1 Trial. Here is a small sample I have created.
Attachments
ExportSample.zip
(3.13 MiB) Downloaded 326 times
Andrew
Posts: 4105
Joined: Fri Jun 09, 2006 3:58 am

Re: Export to image not working

Post by Andrew »

Hello,

I am sorry for the delay with response. It is our fault. Just missed your forum thread.

The code you wrote will not work.
Due to some difficulties, exporting to images png, bmp, jpeg, svg can be done only from the report viewer.
We made a public method in the viewer ExportDocument, which you need to use. Here is an example:
StiSLViewerControl viewer = new StiSLViewerControl();
viewer.ExportDocument(StiExportFormat.ImageJpeg, null, stream, settings);

Thank you.
Locked