|
|
@ -34,21 +34,16 @@ namespace ICSharpCode.Reporting.Expressions |
|
|
|
// http://blog.miraclespain.com/archive/2009/Oct-07.html
|
|
|
|
// http://blog.miraclespain.com/archive/2009/Oct-07.html
|
|
|
|
//
|
|
|
|
//
|
|
|
|
readonly Collection<ExportPage> pages; |
|
|
|
readonly Collection<ExportPage> pages; |
|
|
|
readonly ReportSettings reportSettings; |
|
|
|
|
|
|
|
readonly CollectionDataSource dataSource; |
|
|
|
readonly CollectionDataSource dataSource; |
|
|
|
|
|
|
|
|
|
|
|
public ExpressionRunner(Collection<ExportPage> pages,ReportSettings reportSettings,CollectionDataSource dataSource) |
|
|
|
public ExpressionRunner(Collection<ExportPage> pages,ReportSettings reportSettings,CollectionDataSource dataSource){ |
|
|
|
{ |
|
|
|
|
|
|
|
this.pages = pages; |
|
|
|
this.pages = pages; |
|
|
|
this.dataSource = dataSource; |
|
|
|
this.dataSource = dataSource; |
|
|
|
this.reportSettings = reportSettings; |
|
|
|
|
|
|
|
Visitor = new ExpressionVisitor(reportSettings); |
|
|
|
Visitor = new ExpressionVisitor(reportSettings); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Run() |
|
|
|
public void Run(){ |
|
|
|
{ |
|
|
|
|
|
|
|
// Visitor = new ExpressionVisitor (reportSettings);
|
|
|
|
|
|
|
|
if (dataSource != null) { |
|
|
|
if (dataSource != null) { |
|
|
|
if (dataSource.SortedList != null) { |
|
|
|
if (dataSource.SortedList != null) { |
|
|
|
Visitor.SetCurrentDataSource(dataSource.SortedList); |
|
|
|
Visitor.SetCurrentDataSource(dataSource.SortedList); |
|
|
|