日期:2014-05-18  浏览次数:20934 次

关于ReportService-WebService的问题
最近在使用ReportService

目的:需要在客户端展示报表服务器上部署后的报表(还在测试阶段)

实现途径:
1、客户端指定对应的path,Name及参数(以Xml或其它方式动态读取),已实现
[code=C#]
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);//读取报表信息列表
//......
[/code]

      Question: <程序内调用了服务器端ReportService的WebService>
2、放置一个Web页,内放一个ReportViewer控件,指定ReportServerUrl,处理报表的展示,本机已实现
[code=C#]
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();
[/code]

3、现在问题是当2中所中的页部署到IIS上后,在别的机器上访问时,会提示   Http   404   的错误,
      估计是在别的机器上获取报表的WebService时出了问题,将网页放在WebBrowser里展示

急求解决方案,在线等!!!

------解决方案--------------------
完全没有用过 我是来JF 的
------解决方案--------------------
没弄过,帮顶下
------解决方案--------------------
学习 来的
------解决方案--------------------
学习了,没用过ReportService,只用过WebService.你说在别人机上访问出问题,在自己机上没问题,那你看看是不是权限,路径或者协议的问题。。。
------解决方案--------------------
LZ好聪明,都不给机会研究!