1.添加报表查看控件

this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer();

2.添加报表源并装载报表源

reportDataSource1 = new Microsoft.Reporting.WinForms.ReportDataSource();

this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);

3.添加绑定源

this._TBLBindingSource = new System.Windows.Forms.BindingSource(this.components)

4.为报表数据源添加绑定的源数据

reportDataSource1.Value = this._TBLBindingSource;

5.为绑定源制定数据源

this._TBLBindingSource.DataSource=ds;

相关文章:

  • 2021-08-22
  • 2022-01-13
  • 2022-12-23
  • 2021-10-03
  • 2021-08-15
  • 2021-05-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-04
  • 2021-12-27
  • 2021-05-20
  • 2022-12-23
  • 2021-12-24
  • 2021-10-06
相关资源
相似解决方案