get export output as byte stream
Posted: Fri Feb 18, 2011 7:40 am
Is it possible to get the exported report data (pdf, jpg, ...) as bytestream without saving it to disk before ?
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
StiReport report = new StiReport();
MemoryStream ms = new MemoryStream();
StiPdfExportService pdfService = new StiPdfExportService();
pdfService.ExportPdf(report, ms);
byte[] buf = ms.ToArray();