private void setLocalCache() { _bodyDataSource = PdfRptData.MainTableDataSource(); _rptTemplate = PdfRptData.Template ?? new BasicTemplateProvider(BasicTemplate.NullTemplate); _pdfRptSummarySettings = PdfRptData.SummarySettings; _rptEvents = PdfRptData.MainTableEvents; _pdfRptFont = PdfRptData.PdfFont; _pdfRptHeader = PdfRptData.Header; _conventions = PdfRptData.AdHocColumnsConventions; }
private void setLocalCache() { if (PdfRptData.MainTableDataSource == null) { throw new InvalidOperationException("MainTableDataSource is null or empty."); } _bodyDataSource = PdfRptData.MainTableDataSource(); _rptTemplate = PdfRptData.Template ?? new BasicTemplateProvider(BasicTemplate.NullTemplate); _pdfRptSummarySettings = PdfRptData.SummarySettings; _rptEvents = PdfRptData.MainTableEvents; _pdfRptFont = PdfRptData.PdfFont; _pdfRptHeader = PdfRptData.Header; _conventions = PdfRptData.AdHocColumnsConventions; }