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
Export to image not working
-
- Posts: 2
- Joined: Tue Sep 17, 2013 6:38 am
Re: Export to image not working
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
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
-
- Posts: 2
- Joined: Tue Sep 17, 2013 6:38 am
Re: Export to image not working
I'm using Stimulsoft Reports Ultimate 2013.1 Trial. Here is a small sample I have created.
- Attachments
-
- ExportSample.zip
- (3.13 MiB) Downloaded 336 times
Re: Export to image not working
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.
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.