private static void ExportPDF(LocalReport localReport, Stream stream) { byte[] bytes = PDFHelper.LocalReportToBytes(localReport); stream.Write(bytes, 0, bytes.Length); stream.Close(); }
public static byte[] ExportPDF(string reportFileName, DataTable dataSource, string reportDataSourceName) { LocalReport localReport = PDFHelper.CreateLocalReport(reportFileName, dataSource, reportDataSourceName); byte[] bytes = PDFHelper.LocalReportToBytes(localReport); return(bytes); }