public static void AddReportSettings(this ReportingExpressionEvaluator app, IReportSettings reportSettings) { if (reportSettings == null) { throw new ArgumentNullException("reportSettings"); } app.Globals.Add("ReportSettings", reportSettings); }
public static void AddCurrentContainer(this ReportingExpressionEvaluator app, ExportContainer container) { if (container == null) { throw new ArgumentNullException("container"); } if (!app.Globals.ContainsKey("CurrentContainer")) { app.Globals.Add("CurrentContainer", container); } else { app.Globals["CurrentContainer"] = container; } }
public static void SetCurrentDataSource(this ReportingExpressionEvaluator app, IEnumerable <object> dataSource) { if (dataSource == null) { throw new ArgumentNullException("dataSource"); } if (!app.Globals.ContainsKey("DataSource")) { app.Globals.Add("DataSource", dataSource); } else { app.Globals["DataSource"] = dataSource; } }
public static void AddPageInfo(this ReportingExpressionEvaluator app, IPageInfo pageInfo) { if (pageInfo == null) { throw new ArgumentNullException("pageInfo"); } if (!app.Globals.ContainsKey("PageInfo")) { app.Globals.Add("PageInfo", pageInfo); } else { app.Globals["PageInfo"] = pageInfo; } }
public void Initialize() { grammar = new ReportingLanguageGrammer(); evaluator = new ReportingExpressionEvaluator(grammar); }
public ExpressionVisitor(IReportSettings reportSettings) { grammar = new ReportingLanguageGrammer(); evaluator = new ReportingExpressionEvaluator(grammar); evaluator.AddReportSettings(reportSettings); }