Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Contents of Session Variable to a Crystal Report

Status
Not open for further replies.

tjherman

Programmer
Jun 19, 2006
68
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top