LupoSolitario
Programmer
Hi!
I have a problem that is confusing me.
I have installed CR9 and RAS, to show report in internet.
All I wanna do is changing database at runtime for an existing report.
I have tried two ways:
1) assigning a ConnectioInfo to .DatabaseLogonInfos of the CrystalReportViewer; don't work, the report show old data and mantain old connection info(QE_ServerDescription,QE_LogonProperties and so on are not changed)
2) open a ReportClientDocument that take the report, get the tables, modify connection info for each table (using SetTableLocation of DatabaseController as see in the Report Application SServer SDK, or using ModifyTableConnectionInfo of DatabaseController or using Table.SetLogonInfo), then assign ReportClientDocument.ReportSource to HtmlViewer.ReportSource: a little forward step, because HtmlViewer now show NEW connection info, but again show old values.
Of course, I uncheck Save Data With Report and Discard Saved Data When Loading Report.
Can someone please help me ?
Thanks.
I have a problem that is confusing me.
I have installed CR9 and RAS, to show report in internet.
All I wanna do is changing database at runtime for an existing report.
I have tried two ways:
1) assigning a ConnectioInfo to .DatabaseLogonInfos of the CrystalReportViewer; don't work, the report show old data and mantain old connection info(QE_ServerDescription,QE_LogonProperties and so on are not changed)
2) open a ReportClientDocument that take the report, get the tables, modify connection info for each table (using SetTableLocation of DatabaseController as see in the Report Application SServer SDK, or using ModifyTableConnectionInfo of DatabaseController or using Table.SetLogonInfo), then assign ReportClientDocument.ReportSource to HtmlViewer.ReportSource: a little forward step, because HtmlViewer now show NEW connection info, but again show old values.
Of course, I uncheck Save Data With Report and Discard Saved Data When Loading Report.
Can someone please help me ?
Thanks.