Yes, you can create a field in your Crystal Report that can be
initialized during run time. For example, the following code snippet
sets a formula field jn the report named MyField programmatically:
' VB
report.DataDefinition.FormulaFields.Item("MyField").Text = """Hello
There"""
// C#
report.DataDefinition.FormulaFields.Item("MyField").Text = "\"Hello
There\""
The important thing to remember is to set the text to exactly how you
would type the text for the formula within the Crystal Report's IDE,
which is why the text is delimited with quotes in the example.