CalculatedFields Property
Gets a FieldCollection object containing all of the calculated fields in the report.
Property Value
A
GrapeCity.ActiveReports.Data.FieldCollection value, with calculated fields.
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
var calculated = new GrapeCity.ActiveReports.Data.Field();
calculated.DefaultValue = null;
calculated.FieldType = FieldTypeEnum.None;
calculated.Formula = "=number*2";
calculated.Name = "DoubleNumber";
calculated.Tag = null;
sectionReport.CalculatedFields.Add(calculated);