I am trying to populate a text field on a Crystal report (using Visual Studio 2005 and vb scripting) with the contents of a session variable that I have previously stored.
I found a suggestion while googling of adding the following line to my code behind page to pass the session variable to a formula field on my report:
rptDocument.DataDefinition.FormulaFields.Item("From").Text = "'" + (Session("From")) + "'"
Even though I have tested to verify that the session variable does have the correct information in it, nothing displays in my formula field.
Can anyone tell me what I'm doing wrong here or is there a better way to get the information from a session variable to display on a report?
Thanks!
I found a suggestion while googling of adding the following line to my code behind page to pass the session variable to a formula field on my report:
rptDocument.DataDefinition.FormulaFields.Item("From").Text = "'" + (Session("From")) + "'"
Even though I have tested to verify that the session variable does have the correct information in it, nothing displays in my formula field.
Can anyone tell me what I'm doing wrong here or is there a better way to get the information from a session variable to display on a report?
Thanks!