I recently posted a very similar question but realised I need to go one step further. I'm writing a VB.Net application with one or two Crystal Reports incorporated. I'm using .Net framework 2 and VS2005.
My original question was: how can I pass my crystal report (rpt) a datatable/dataset from my .Net code? This was answered by the following: http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
This works great if the dataset and XSD comes from a database. But now I need to pass a dataset that does not come from a database. I build the dataset and datatable within it by collecting data from other sources. See example below:
.Columns.Add(New DataColumn("TaskCount", System.Type.GetType("Syste
m.Int32", True, True)))
I then manually populate it with data.
My problem is: if I provide my crystal report with a XSD Schema written from this dataset, it doesn't show under ADO.Net Datasets.
Is there some other way to pass this dataset to my report?