|
-
Oct 7th, 2011, 02:25 AM
#1
Creating the report dynamically from a DataTable populated at runtime
Hi guys 
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 
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.
Last edited by akhileshbc; Oct 7th, 2011 at 02:36 AM.
Reason: found a solution :D
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|