[]
Gets a value representing the collection of fields whose values are evaluated during report execution.
[Browsable(false)]
public FieldCollection CalculatedFields { get; }
Type | Description |
---|---|
FieldCollection | A FieldCollection value, with calculated fields. |
SectionReport can calculate simple arithmetic formulas.
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);