远程报表的调用

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();

 

posted on 2012-07-18 21:54  ewyb  阅读(332)  评论(0编辑  收藏  举报

导航