public SimplePrintData CreateReport(SimpleReportData reportData) { var data = new SimplePrintData(); var builder = new ReportBuilder(); data.HtmlContent = builder.BuildReport(reportData); Cleanup(reportData); return(data); }
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); }
public void LoadReport(SimplePrintData reportPrintData) { SLEvents.FireLoadReport(new SimpleEventArgs { HtmlContent = reportPrintData.HtmlContent }); }