4,816
社区成员
发帖
与我相关
我的任务
分享
string strFileName = @"\Report\CrystalReport_Pickup.rpt";
ReportDocument rd = new ReportDocument();
string reportPath = Application.StartupPath + strFileName;
rd.Load(reportPath);
rd.SetDatabaseLogon("sa", Strpassword);
crystalReportViewer1.ParameterFieldInfo = paramFields;
crystalReportViewer1.ReportSource = rd;