get export output as byte stream
get export output as byte stream
Is it possible to get the exported report data (pdf, jpg, ...) as bytestream without saving it to disk before ?
get export output as byte stream
Hello,
You can use the following code, for example:
Thank you.
You can use the following code, for example:
Code: Select all
StiReport report = new StiReport();
MemoryStream ms = new MemoryStream();
StiPdfExportService pdfService = new StiPdfExportService();
pdfService.ExportPdf(report, ms);
byte[] buf = ms.ToArray();