Report from Dataset created in a Class

Asked

Viewed 196 times

1

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

When searching for the Report.rdlc data source I refer to the class where 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 the one that will be generated, but I can’t populate it with the method data.

How should I proceed? Thank you.

1 answer

1

Okay, the answer was simpler than I thought.

All that was missing was creating an instance of Dataset as any class. I didn’t think it would be necessary but I learned from Dataset that yes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.