Problem using ADO .NET DataSet with Crystal Reports
Posted on 2004-08-31
I try to generate a simple report with Crystal Reports for .NET.
I've already done some reports from xml files or from databases, but my problem is now to use an ADO.NET DataSet as a data source.
I have my .xsd file to describe the structure and I fill the dataset this way :
- Dim DSLicences As New Odyssee.AcroDroits.DataSetLicences
- DSLicences.LicenceWeb.AddLicenceWebRow(11, 13, #12/13/2004#, 11, 13)
Then I set the datasource in the report :
- Dim MyReport As New LicencesReport
And finally give it to the viewer that is on my Form :
- CRViewer.ReportSource = MyReport
I always get an error message when I put my data fields on my report (.rpt) file : "Error while loading database informations"...
Please Help !!