Using StiCalcDataColumn to add Calculated columns to report.
Posted: Mon Sep 10, 2007 6:26 am
I am trying to add a StiCalcDataColumn programatically to my report. It is going wrong as when I try to save the report I get an null assignment error. The code I am using to add the column is as follows:
StiCalcDataColumn Col = new StiCalcDataColumn(fn, fn, dtype, "\"Hello\"");
Report.Dictionary.DataSources["MainData"].Columns.Add(Col);
Anybody know where I may be going wrong or have an example of using StiCalcDataColumn?
Thanks
Tim
StiCalcDataColumn Col = new StiCalcDataColumn(fn, fn, dtype, "\"Hello\"");
Report.Dictionary.DataSources["MainData"].Columns.Add(Col);
Anybody know where I may be going wrong or have an example of using StiCalcDataColumn?
Thanks
Tim