I have a Crystal Report linked to 2 typed datasets. When I run it I get Database Logon screens for each table in the separate Databases. I cannot successfully logon to them. I have filled the datasets correctly before enabling the report viewer. So why do the logon screens appear even though I have linked the report to Datasets and not to the live Databases? Is there any way to disable the logon screens?
Geoff Murley - 24 Feb 2004 15:01 GMT
Solved the problem now by putting the 2 tables in the same Dataset and using this code
Dim crReportDocument As SchoolsStock ''Name of Repor
''Create an instance of the strongly-typed report objec
crReportDocument = New SchoolsStoc
''Pass the populated dataset to the repor
crReportDocument.SetDataSource(DsEstablishments1
''Set the viewer to the report object to be previewed
CrystalReportViewer1.ReportSource = crReportDocument