We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Reportwriter PDF 0 bytes when report generated with chart.

Thread ID:

Created:

Updated:

Platform:

Replies:

147092 Sep 1,2019 06:20 AM UTC Sep 2,2019 05:26 AM UTC WPF 1
loading
Tags: ReportWriter
Heiko
Asked On September 1, 2019 06:20 AM UTC

Hello,

I have a simple local RDL report, one version with chart, other version without chart. The one with the chart is 0 bytes when generated.

The relevant C# script part is:

//write report
ReportWriter reportWriter = new ReportWriter(reportPath);
reportWriter.ReportProcessingMode = ProcessingMode.Remote;

//write report to stream
var format = WriterFormat.PDF;
MemoryStream ms = new MemoryStream();
reportWriter.Save(ms, format);
byte[] bytes = ms.ToArray();

I think that I am missing some assembly or so?


Vinoth Srinivasan [Syncfusion]
Replied On September 2, 2019 05:26 AM UTC

Hi Heiko, 
 
Thanks for your interest in Syncfusion products. 
 
Could you please share your application to reproduce the reported issue at our end? Meanwhile the problem may raise due to threading, when you try to export a UI element using WPF console application, if you make the call from the main thread, you must add the STAThread attribute to the Main method. Please refer the below MSDN forum for more details regarding UI thread. 

Regards, 
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon