crystal report question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, i want to put in my crystalReport an empty field that will be initialize
on run time
is it possible ? how? what kind of field it should be?
thanks
 
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.
 
Thank you for the reply
i have one more question...in the file of the crystalReport (rpt) i need to
put the field but what kind of field is that? i mean what to choose in that
file to create the field?
hope you will help me again
thanks
 
Back
Top