Report from DataSet created in a Class

1

How do I create a Visual Studio 2013 Report from a DataTable (or DataSet) created in a method?

When fetching the Report.rdlc data source I reference the class where the DataTable is created, but it is not listed as DataSource.

I tried to add a DataSet.xsd to my project, I created a DataTable with the same schema as it will be generated, but I can not populate it with the method data.

How should I proceed? Thank you.

    
asked by anonymous 10.09.2015 / 19:10

1 answer

1

Ok, the answer was simpler than I imagined.

I just needed to create an instance of the DataSet as any class. I thought it would not be necessary but I learned in the morning that yes.

    
16.09.2015 / 21:36