DataTable reportData = this.GetReportData(startId, endId, empId, minAmount, reportType);
ReportViewer reportViewer = new ReportViewer();
reportViewer.ProcessingMode = ProcessingMode.Local;
reportViewer.LocalReport.ReportEmbeddedResource = "PDCL.ERP.Modules.Marketing.Reports.rptDoctorDetail.rdlc";
ReportDataSource ds = new ReportDataSource();
ds.Name = "DoctorDetail_Report";
ds.Value = reportData;
reportViewer.LocalReport.DataSources.Add(ds);
reportViewer.RefreshReport();
this.WindowsFrmHost.Child = reportViewer;
這是我的代碼。我使用SSRS,但查看器只顯示但不顯示任何數據。 爲什麼..?wpf中的SSRS報告問題
您是否嘗試將事件處理程序添加到ReportError或RenderingCompleted以查看是否有任何其他信息來自查看器控件? – 2010-11-23 10:08:52