[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.CalculatedFields

CalculatedFields Property

CalculatedFields

Gets a value representing the collection of fields whose values are evaluated during report execution.

Declaration
[Browsable(false)]
public FieldCollection CalculatedFields { get; }
Property Value
Type Description
FieldCollection

A FieldCollection value, with calculated fields.

Remarks

SectionReport can calculate simple arithmetic formulas.

Examples
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);