H
Henry
I am writing a Windows forms VB.Net/MS SQL application via VS 2003 that
utilizes Crystal Reports. I want to be able to dynamically set the
report data source at run time.
I'm trying to change the the reports "integrated security" from TRUE to
FALSE via the "Set Location" dialog in the report designer with no
success. It is not intuitive (at least not to me.)
I get the following error:
"Error in file....Invalid table number."
The error is being generated at this line of my code:
'DatabaseName is changing at runtime, specify the table location.
CrTable.Location = "UpsizeUATSQLBackup.dbo." &
CrTable.Location.Substring(CrTable.Location.LastIndexOf(".") + 1)
If I change "UpsizeUATSQLBackup.dbo." to the original db location i.e.
"UpsizeUATSQL.dbo" it works fine.
I've seen other posts on the web that state that the "integrated
security" for the report connection has to be FALSE, otherwise the
connection is hard coded into the report.
Article c2011430 on CR support site seems to indicate that you can
change it in Crystal 9, where previously you could not, due to a bug.
My question is how do I change the report's connection "integrated
security" to FALSE?
Tks for any guidance/help you can provide.
....Henry
utilizes Crystal Reports. I want to be able to dynamically set the
report data source at run time.
I'm trying to change the the reports "integrated security" from TRUE to
FALSE via the "Set Location" dialog in the report designer with no
success. It is not intuitive (at least not to me.)
I get the following error:
"Error in file....Invalid table number."
The error is being generated at this line of my code:
'DatabaseName is changing at runtime, specify the table location.
CrTable.Location = "UpsizeUATSQLBackup.dbo." &
CrTable.Location.Substring(CrTable.Location.LastIndexOf(".") + 1)
If I change "UpsizeUATSQLBackup.dbo." to the original db location i.e.
"UpsizeUATSQL.dbo" it works fine.
I've seen other posts on the web that state that the "integrated
security" for the report connection has to be FALSE, otherwise the
connection is hard coded into the report.
Article c2011430 on CR support site seems to indicate that you can
change it in Crystal 9, where previously you could not, due to a bug.
My question is how do I change the report's connection "integrated
security" to FALSE?
Tks for any guidance/help you can provide.
....Henry