Yes, for example, we use the following function to change formulas:
Public Sub SetReportFormulaContents(ByRef Report As ReportDocument, ByVal FormulaName As String, ByVal FormulaContents As String)
Dim Formula As FormulaFieldDefinition = Nothing
' Get the ReportObject by name and cast it as a FieldObject
If TypeOf (Report.DataDefinition.FormulaFields.Item(FormulaName)) Is CrystalDecisions.CrystalReports.Engine.FormulaFieldDefinition Then
Formula = Report.DataDefinition.FormulaFields.Item(FormulaName)
Formula.Text = FormulaContents
End If
End Sub
source
share