DataSetinvioce ds = new DataSetinvioce();
DataSetinvioceTableAdapters.DataTable1TableAdapter rd = new DataSetinvioceTableAdapters.DataTable1TableAdapter(); rd.Fill(ds.DataTable1, idcompany); //error CS1502: The best overloaded method match for 'DataSetinvioceTableAdapters.DataTable1TableAdapter.Fill(DataSetinvioce.DataTable1DataTable, string)' has some invalid arguments
ไม่ทราบerror เพราะอะไรค่ะ คือ type ของ key ก็ตรงกันค่ะ
Tag : ASP.NET, C#
Date :
2010-08-27 15:05:39
By :
Kaiwhan
View :
1121
Reply :
1
No. 1
Guest
Code (C#)
DataSetinvioce ds = new DataSetinvioce();
DataSetinvioceTableAdapters.DataTable1TableAdapter rd = new DataSetinvioceTableAdapters.DataTable1TableAdapter();
rd.Fill(ds.DataTable1, idcompany); // error CS1502: The best overloaded method match for 'DataSetinvioceTableAdapters.DataTable1TableAdapter.Fill(DataSetinvioce.DataTable1DataTable, string)' has some invalid arguments
ReportDocument reportinvoice = new ReportDocument();
reportinvoice.Load(Server.MapPath("report1.rpt"));
reportinvoice.SetDataSource(dsinvoice);
CrystalReportViewer1.Visible = true;
CrystalReportViewer1.ReportSource = reportinvoice;