我想实现选中那个radioButton,就换成相应的报表,默认是第一个radioButton的报表,是在vs里设定好的,没手动写代码.
这是我radioButton1_CheckedChanged事件的代码: reportDataSource1.Name = "ChargeSort_DtDoctor";
reportDataSource1.Value = this.dtDoctorBindingSource;
this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
this.reportViewer1.LocalReport.ReportEmbeddedResource = "TestReports._2.Reports.DoctorIncome.rdlc";
this.dtDoctorTableAdapter.FillDoctor(chargeSort1.DtDoctor, comboBox1.SelectedValue.ToString().Trim(), "%");
this.reportViewer1.RefreshReport();
这是我radioButton1_CheckedChanged事件的代码: reportDataSource1.Name = "ChargeSort_DtDoctor";
reportDataSource1.Value = this.dtDoctorBindingSource;
this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
this.reportViewer1.LocalReport.ReportEmbeddedResource = "TestReports._2.Reports.DoctorIncome.rdlc";
this.dtDoctorTableAdapter.FillDoctor(chargeSort1.DtDoctor, comboBox1.SelectedValue.ToString().Trim(), "%");
this.reportViewer1.RefreshReport();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货