Creating the report dynamically from a DataTable populated at runtime
Hi guys :wave:
I have a DataTable made completely at runtime. And I want to show a report with the contents of this table. I'm gonna use the pre-installed ReportViewer in VB2010 Ultimate.
I have done some googling and haven't got success on how to bind it dynamically.
The DataTable's field names and contents will be different each time and the number of column & rows would also be different.
A maximum of 70 rows(records) will be there in the DataTable. And the columns would extend to a maximum of 15 (14 of them displays 2 or 3 digit numbers and only one will display a name).
All the fields in the DataTable are of String type.
Any ideas ?
Thanks :wave:
Edit:
I think I found the solution : http://www.gotreportviewer.com/DynamicTableVB.zip
Storing the content of DataTable as XML might work. Will experiment with it. :wave: