FormulaFieldDefinition.Text Property

Gets or sets the text of the formula.

Namespace CrystalDecisions.CrystalReports.Engine Assembly CrystalDecisions.CrystalReports.Engine (CrystalDecisions.CrystalReports.Engine.dll)

Syntax

'Declaration

Public Overrideable Property Text As String
public virtual string Text {get; set;}

Example

This example updates the formulas in the data definition of a report.

'Declaration

      Private Sub UpdateFormulas(ByVal myReportDocument As ReportDocument)
         myReportDocument.DataDefinition.FormulaFields.Item(1).Text = "{file.SALES} *.1"
         myReportDocument.DataDefinition.FormulaFields.Item(2).Text = "{file.SALES} + {file.COMMISSION}"
      End Sub
      
      private void UpdateFormulas(ReportDocument reportDocument)
      {
         reportDocument.DataDefinition.FormulaFields[1].Text = "{file.SALES} *.1";
         reportDocument.DataDefinition.FormulaFields[2].Text = "{file.SALES} + {file.COMMISSION}";
      }
      

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

FormulaFieldDefinition Class
FormulaFieldDefinition Members
CrystalDecisions.CrystalReports.Engine Namespace