Ja, zum Beispiel verwenden wir die follwoing Funktion Formeln zu ändern:
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
Ist es möglich, zu ändern, ob die Syntax der Formel Kristall oder Basic ist? Frage: http://stackoverflow.com/questions/2386710/how-to-programmatical-change-a-crystal-reports-formula-from-crystal-syntax-to-b – Rory