Do not understand the specific steps, see: http://www.cnblogs.com/AXzhz/services/trackbacks/700305.aspx
Method 1:
Create a data source and Dataset. You can run the dataset with simple settings in reportviewer.
Method 2:
Data Source instance Both Set to none,
Add the following in the background: Code ,
Private Void Form1_load ( Object Sender, eventargs E)
{
String SS = @" Provider = Microsoft. ace. oledb.12.0; Data Source = c: \ Documents and Settings \ axzhz \ My Documents ents \ Visual Studio 2005 \ projects \ ax \ windowsapplication10 \ windowsapplication10 \ database1.mdb; persist Security info = false " ;
Oledbconnection con = New Oledbconnection (SS );
Oledbdataadapter da = New Oledbdataadapter ( " Select * From Table1 " , Con );
Oledbdataadapter da1 = New Oledbdataadapter ( " Select * From Table2 " , Con );
Dataset DS = New Dataset ();
Da. Fill (DS, " Table1 " );
Da1.fill (DS, " Table 2 " );
This . Reportviewer1.localreport. CES. Add ( New Reportdatasource ( " Ds_table1 " , DS. Tables [ 0 ]);
This . Reportviewer1.localreport. CES. Add ( New Reportdatasource ( " Ds_table2 " , DS. Tables [ 1 ]);
This . Reportviewer1.localreport. reportembeddedresource = " Windowsapplication10.report1. rdlc " ;
This . Reportviewer1.refreshreport ();
}