Example #1
0
        public SimplePrintData CreateReport(SimpleReportData reportData)
        {
            var data = new SimplePrintData();

            var builder = new ReportBuilder();

            data.HtmlContent = builder.BuildReport(reportData);

            Cleanup(reportData);
            return(data);
        }
Example #2
0
        public SimplePrintData CreateTable(SimpleTableData tableData)
        {
            var data = new SimplePrintData();

            var builder = new ReportBuilder();

            data.HtmlContent = builder.BuildTable(tableData);

            Cleanup(new SimpleReportData {
                ContentData = new SimpleContentData {
                    ListOfTables = new List <SimpleTableData> {
                        tableData
                    }
                }
            });
            return(data);
        }
Example #3
0
 public void LoadReport(SimplePrintData reportPrintData)
 {
     SLEvents.FireLoadReport(new SimpleEventArgs {
         HtmlContent = reportPrintData.HtmlContent
     });
 }