954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

problem passing parameter to crystal from .net

I do:
paramField.ParameterFieldName = "P1"
' Set a value to the parameter.
paramValue.Value = strTemp
paramField.CurrentValues.Add(paramValue)
paramField.DefaultValues.Add(paramValue)
' Add the parameter to the ParameterFields collection.
paramFields.Add(paramField)
CrystalReportViewer.ParameterFieldInfo = paramFields
strReportSource = strReportSource & "Transaction For Specified Account.rpt"
CrystalReportViewer.ReportSource = strReportSource

Then I get "Load report failed"

Any suggestions?

Thanks....

newjerseydr
Newbie Poster
5 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Correct me if I am wrong, but I thought you had to specify the location as well as the report name? i.e. using the UNC for file location.

See link: LINKY!

Paladine
Master Poster
Team Colleague
824 posts since Feb 2003
Reputation Points: 211
Solved Threads: 27
 

Correct me if I am wrong, but I thought you had to specify the location as well as the report name? i.e. using the UNC for file location.

See link: LINKY!

I did specify the location of the report in the report name. I found the problem. It was that I didn't have the correct location for the report. Once I put the report in the right location the report ran fine.

Thanks....

newjerseydr
Newbie Poster
5 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

Glad to hear you go it working.

P.S. And that is what I meant about the specifying the location, was the location the report was at physically specified exactly in the code.

Paladine
Master Poster
Team Colleague
824 posts since Feb 2003
Reputation Points: 211
Solved Threads: 27
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You