Beispiel #1
0
        private static void ExportPDF(LocalReport localReport, Stream stream)
        {
            byte[] bytes = PDFHelper.LocalReportToBytes(localReport);

            stream.Write(bytes, 0, bytes.Length);
            stream.Close();
        }
Beispiel #2
0
        public static byte[] ExportPDF(string reportFileName, DataTable dataSource, string reportDataSourceName)
        {
            LocalReport localReport = PDFHelper.CreateLocalReport(reportFileName, dataSource, reportDataSourceName);

            byte[] bytes = PDFHelper.LocalReportToBytes(localReport);

            return(bytes);
        }