110,537
社区成员
发帖
与我相关
我的任务
分享
Microsoft.Reporting.WinForms.ReportDataSource detailreporttable = new ReportDataSource("DataSetInReport", ds.Tables["Table"]);
reportViewer1.LocalReport.ReportEmbeddedResource = "ReportDetail.rdlc";
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(detailreporttable);
reportViewer1.RefreshReport();