4,818
社区成员
发帖
与我相关
我的任务
分享
ReportDocument myReport=new ReportDocument();
myReport.Load(@"E:\C_TEMP\HTHY\HTHY\CrystalReport1.rpt");
//myReport.SetDataSource(dataSet); //设置数据源
myReport.SetParameterValue("sfd",comboBox1.Text); //参数赋值
crystalReportViewer1.ReportSource = myReport;
ReportDocument myReport=new ReportDocument();
myReport.Load(@"E:\C_TEMP\HTHY\HTHY\CrystalReport1.rpt");
myReport.SetParameterValue("sfd",comboBox1.Text); //参数赋值
//myReport.SetDataSource(dataSet); //设置数据源
crystalReportViewer1.ReportSource = myReport;