Specifies whether the Text property should be interpreted as a literal value
or as a calculated expression.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DefaultValueAttribute(false)] public bool Calculated { get; set; } |
Visual Basic |
---|
<DefaultValueAttribute(False)> _ Public Property Calculated As Boolean Get Set |
Remarks
If this property is set to false, the value of the Text property is rendered on the report without any further processing.
If it is set to true, the value of the Text property is evaluated as a VBScript expression and the result of the expression is rendered on the report.
The default value for this property is False.
Examples
The following code creates two fields. One displays the label "Sales Tax", the other displays the tax value by multiplying a database field ("Sales") by a constant:
Copy CodeVisual Basic
' display literal Text c1r.Field(0).Text = "Sales Tax" c1r.Field(0).Calculated = False ' display a calculated value c1r.Field(1).Text = "Sales * 0.085" c1r.Field(1).Calculated = True |
Copy CodeC#
// display literal Text c1r.Field[0].Text = "Sales Tax"; c1r.Field[0].Calculated = false; // display a calculated value c1r.Field[1].Text = "Sales * 0.085"; c1r.Field[1].Calculated = true; |