Comment puis-je charger des datatable que ReportDataSource?

Je suis en train de faire quelque chose comme:

this.reportViewer.LocalReport.DataSources.Clear();
DataTable dt = new DataTable();
dt = this.inputValuesTableAdapter.GetData();    
Microsoft.Reporting.WinForms.ReportDataSource rprtDTSource = new Microsoft.Reporting.WinForms.ReportDataSource();

rprtDTSource = dt; //this line generates exception   

//this.reportViewer.LocalReport.DataSources.Add(rprtDTSource);
this.reportViewer.RefreshReport();

Comment puis-je charger des datatable que ReportDataSource?

L'actuel code produit:
"Impossible de convertir implicitement le type de Système.Les données.DataTable' à 'Microsoft.La production de rapports.WinForms.ReportDataSource' "

c'est juste du c# de déclaration..

OriginalL'auteur ehmad | 2010-10-23