Spuriousbugfix
Programmer
I am using Crystal 9 and MS SQL Server 2000 and the activeX viewer to launch my reports in the web using ASP.
All of my reports use stored procedures.
The majority of these reports use a Command to call the sp and the following code to set the log on details in the web.
Set CRTables = Session("oRpt").Database.Tables
For CRTable in CRTables
CRTable.SetLogOnInfo cstr(ODBC),cstr(Database),cstr(User),cstr(Pass)
Next
This is all working fine.
However I have been given a stack of reports to use in the web which do NOT have a command in them and just call the stored procedure so the database name is hardcoded in the call to the stored proc.
My above code does not seem to work with this and errors because it is looking for the same database the report was using when it was created.
(We have a number of reports that need to run against 5 different databases).
Any help with this would be appreciated as I can not set the location of some of the reports for unknown reasons (Crystal errors).
All of my reports use stored procedures.
The majority of these reports use a Command to call the sp and the following code to set the log on details in the web.
Set CRTables = Session("oRpt").Database.Tables
For CRTable in CRTables
CRTable.SetLogOnInfo cstr(ODBC),cstr(Database),cstr(User),cstr(Pass)
Next
This is all working fine.
However I have been given a stack of reports to use in the web which do NOT have a command in them and just call the stored procedure so the database name is hardcoded in the call to the stored proc.
My above code does not seem to work with this and errors because it is looking for the same database the report was using when it was created.
(We have a number of reports that need to run against 5 different databases).
Any help with this would be appreciated as I can not set the location of some of the reports for unknown reasons (Crystal errors).