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. Image for the cookie policy date

Reportwriter PDF 0 bytes when report generated with chart.


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?

1 Reply

VS Vinoth Srinivasan Syncfusion Team September 2, 2019 12:26 AM

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. 

Vinoth S. 

Live Chat Icon For mobile
Up arrow icon