我正在尝试以下操作,并且我的报告不包含任何参数,我也在使用 .Net Objects
Dim data = GetDataConnection()
Dim ds = (From th In data.TranHeads Where th.THCSCode = "YYY001"
Select th).ToList
Dim crySalesTran As ReportDocument = New IBS_DAL.rep_SalesTransaction
crySalesTran.SetDataSource(ds.AsEnumerable)
CrystalReportViewer1.ReportSource = crySalesTran
出于某种原因,当它到达 setdatasource
TargetParameterCountException
参数计数不匹配。