I'm using Crystal Reports 10 and have created a simple report that uses a Stored Procedure which expects a parameter. I design it and run it inside CR and it prompts for a parameter and works fine when one is entered. When I place this report in a program that basically selects reports from a directory and runs the report in the CR Viewer, I get the following error:
Weird part is if I remove the parameter and just do a select * in the SP, the program will open the report just fine, so it seems to have something to do with the parameter.
I made sure I clicked Verify Database and that the Save Data with Report is unchecked.
Any ideas?
Code:
Failed to open a rowset.
Details: ADO Error Code 0x
Source: Microsoft OLE DB Provider for SQL Server
Description: Procedure 'TestProc' expects parameter '@ParamID', which was not supplied.
SQL State: 42000
Native Error:
Failed to open a rowset
Weird part is if I remove the parameter and just do a select * in the SP, the program will open the report just fine, so it seems to have something to do with the parameter.
I made sure I clicked Verify Database and that the Save Data with Report is unchecked.
Any ideas?