Reputation: 1096
Is it possible to generate a CrystalReport without using the wizards of the DataSets and CrystalReports?
If so, which is the best way to tackle it?
So far, I've created an empty DataSet and an empty CrystalReport, and linked the CrystalReport to the latter DataSet using the wizard. Afterwords, I am creating a DataTable, putting this table into the DataSet and displaying it into a report. But an exception always generates telling me that no table was found. This is definetly not the case, since the same table is being viewed as a GridView at a previous stage.
Any help is highly appreciated,
Thanks
Upvotes: 4
Views: 1558
Reputation: 52270
I think the CrystalReport will generate some kind of schema - so when you first show it a empty set it won't find the table afterwards. There should be some kind of "refresh database" inside the wizard.
Normaly you wan't to create a typed-dataset (with the VS-Designer) and show this to the wizard. Then everything works rather fine.
OT: But as a long time user of CR let me tell you: this tool is a pain in the A. - if there are more than one version of it on a system (and chances are pretty high for this) you will witness all kind of really bad behaviour.
Upvotes: 1