this.reportViewer1.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Remote; this.reportViewer1.ServerReport.ReportPath = @"/Report1"; this.reportViewer1.ServerReport.ReportServerUrl = new Uri(@"http://172.20.63.12:8082/reportserver"); this.reportViewer1.ServerReport.ReportServerCredentials.NetworkCredentials = new System.Net.NetworkCredential(@"wyb", "Ibm4321", @"");//这是report服务器上的本地账号 this.reportViewer1.RefreshReport();