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; }
/// <summary> /// Here you can control how cells should be rendered based on their specific data types. /// </summary> /// <param name="bodyDataSource">Orion.Framework.Pdf.Reports's DataSource Contract</param> /// <param name="conventions">Here you can control how cells should be rendered based on their specific data types.</param> public AdHocPdfColumnDefinitions(IDataSource bodyDataSource, AdHocColumnsConventions conventions) { _bodyDataSource = bodyDataSource; _conventions = conventions; }
/// <summary> /// If you don't set PdfColumnsDefinitions, list of the main table's columns will be extracted from MainTableDataSource automatically. /// Here you can control how cells should be rendered based on their specific data types. /// </summary> /// <param name="adHocColumnsConventions">conventions</param> public void SetAdHocColumnsConventions(AdHocColumnsConventions adHocColumnsConventions) { _adHocColumnsConventions = adHocColumnsConventions; }