THe following applies to Crystal Reports for Visual Studio 2005 v10.2.3600.0
When I change the datasource of a report at runtime to anything other than my development machine, I am getting the following errors...
"The field name is not known."
"Error in File..."
"Error in formula <Monday>"
'{?@StartDate}'
This field name is not known
Note: **This paramter is created from the stored procedure used to create the report
Failed to open a rowset, procedure expects parameter @LocationID which was not supplied.
Note: **the parameter is supplied during runtime
I have reproduced the following several times.
1. Created a report that gets data from a stored procedure having
parameters on sql server
2. create a vb.net project with a crystalreportviewer control
3. bind the report to the control at runtime
4. at runtime, the viewer control will ask the user to input values for
the params
5. report loads as expected
During step 3, if the database location is changed to a different
server than the one used when developing the Crystal Report, the
following will occur.
-->4. at runtime, the viewer control will ask the user to input values
for the params
-->5. report loading fails with an ADO error stating the stored
procedure expected parameters that were not supplied.
This works backwards as well, meaning I then create a report using the production server, then change the datasource at runtime to my dev machine which gets the same results as above.