dogboydelta
Feb 1st, 2007, 11:10 AM
I need to fill a report in code for display. I got everything figured out except one piece:
I create a report add a table, called MyTable, and load it into the LocalReport of my ReportViewer object:
ReportViewer1.LocalReport.ReportPath = "C:\myreport.rdlc"
This works and displays great with empty data - but one thing. In this code, I need to fill the table MyTable that is in that report (the myreport.rdlc) with some data. How do I access it? I need to do it somewhere in the code here - before or after the line above. I can use a datatable or dataset as the datasource.
Please help.
thanks.
I create a report add a table, called MyTable, and load it into the LocalReport of my ReportViewer object:
ReportViewer1.LocalReport.ReportPath = "C:\myreport.rdlc"
This works and displays great with empty data - but one thing. In this code, I need to fill the table MyTable that is in that report (the myreport.rdlc) with some data. How do I access it? I need to do it somewhere in the code here - before or after the line above. I can use a datatable or dataset as the datasource.
Please help.
thanks.