我使用報表查看器生成report.following是代碼我使用報表查看器問題
ReportViewer1.LocalReport.ReportPath = @"C:\Users\Saga\Desktop\projectvn\VehicleReport.rdlc";
ReportParameter Param1 = new ReportParameter("@BrandName", "Toyota");
ReportParameter[] p1 = { Param1 };
ReportViewer1.LocalReport.SetParameters(p1);
它提供了以下異常
An error occurred during local report processing
任何一個能plz幫助?
帖子InnerException和堆棧跟蹤。 – 2010-08-29 18:54:45
內部異常 - {「嘗試設置未在此報告中定義的報告參數'@BrandName'。」} – chamara 2010-08-29 19:11:55