//引用
using Microsoft.Reporting.WinForms;
//新建报表参数
ReportParameter Rp_s_type = new ReportParameter("s_type", new string[] { "true" });

//传递报表参数语法

reportViewer_ywy_Old.LocalReport.SetParameters(new ReportParameter[] { Rp_s_type });
//刷新报表数据集 
reportViewer_ywy_Old.LocalReport.DataSources.Clear();//清空数据集
//参数一:报表本地数据集名称
//参数二:要填充的数据集的 table
reportViewer_ywy_Old.LocalReport.DataSources.Add(new Microsoft.Reporting.WinForms.ReportDataSource("DepartmentDataSet_Department_customer", DataSet_Items_Data.Tables[0]));
//刷新报表
reportViewer_ywy_Old.RefreshReport();

相关文章:

  • 2021-08-21
  • 2022-02-20
  • 2021-08-13
  • 2021-11-27
  • 2021-10-16
  • 2021-12-06
  • 2021-05-30
猜你喜欢
  • 2021-05-24
  • 2021-11-05
  • 2022-12-23
  • 2022-02-07
  • 2021-10-04
相关资源
相似解决方案