最近在使用ReportService目的:需要在客户端展示报表服务器上部署后的报表(还在测试阶段)实现途径:
1、客户端指定对应的path,Name及参数(以Xml或其它方式动态读取),已实现MyRS.ReportingService rs = new MyRS.ReportingService(); //ReportService的WebService
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;//常规做法
string curFolder = MyReportService.GetReportServerFolder(); //获得报表文件夹
LandaRS.CatalogItem[] reportItems = rs.ListChildren(curFolder, true);//读取报表信息列表
//......
Question:<程序内调用了服务器端ReportService的WebService>
2、放置一个Web页,内放一个ReportViewer控件,指定ReportServerUrl,处理报表的展示,本机已实现string report = Request.QueryString["Path"] + "";
string reportServer = "http://ServerIP/ReportServer";
ReportViewer1.ServerReport.ReportServerUrl = new Uri(reportServer);
ReportViewer1.ServerReport.ReportPath = report;
Microsoft.Reporting.WebForms.ReportParameterInfoCollection rpic =
ReportViewer1.ServerReport.GetParameters();
//.....处理参数等
ReportViewer1.ServerReport.Refresh();
3、现在问题是当2中所中的页部署到IIS上后,在别的机器上访问时,会提示 Http 404 的错误,
估计是在别的机器上获取报表的WebService时出了问题,将网页放在WebBrowser里展示急求解决方案,在线等!!!
1、客户端指定对应的path,Name及参数(以Xml或其它方式动态读取),已实现MyRS.ReportingService rs = new MyRS.ReportingService(); //ReportService的WebService
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;//常规做法
string curFolder = MyReportService.GetReportServerFolder(); //获得报表文件夹
LandaRS.CatalogItem[] reportItems = rs.ListChildren(curFolder, true);//读取报表信息列表
//......
Question:<程序内调用了服务器端ReportService的WebService>
2、放置一个Web页,内放一个ReportViewer控件,指定ReportServerUrl,处理报表的展示,本机已实现string report = Request.QueryString["Path"] + "";
string reportServer = "http://ServerIP/ReportServer";
ReportViewer1.ServerReport.ReportServerUrl = new Uri(reportServer);
ReportViewer1.ServerReport.ReportPath = report;
Microsoft.Reporting.WebForms.ReportParameterInfoCollection rpic =
ReportViewer1.ServerReport.GetParameters();
//.....处理参数等
ReportViewer1.ServerReport.Refresh();
3、现在问题是当2中所中的页部署到IIS上后,在别的机器上访问时,会提示 Http 404 的错误,
估计是在别的机器上获取报表的WebService时出了问题,将网页放在WebBrowser里展示急求解决方案,在线等!!!
2、在客户端调用;
3、初步实现,本机和另外的机子(只要使用同一客户端)均可以访问***************************************过几天,结贴 ,如各位同仁另有思路,欢迎分享。