assign datatable to crystal report
-
i have datatable which is returned from storedprocedure,now i want to pass that data table's values to crystal report to view, i have tried through parameters but can't get desired result.the database fields i cant assign to report because the values come from different sources in storedprocdure Regards
-
i have datatable which is returned from storedprocedure,now i want to pass that data table's values to crystal report to view, i have tried through parameters but can't get desired result.the database fields i cant assign to report because the values come from different sources in storedprocdure Regards
You need to create a strongly typed DataSet in your project, one that represents the data schema from the stored procedure. Then you need to base your report off the strongly typed DataSet. Then just assign the DataSource property of the CrystalReport to the instance of the DataSet returned from your your stored procedure.
If at first you don't succeed ... post it on The Code Project and Pray.