js 中调用reportseivice实现查询

注意 ReportServer 后边的那个问号
我这是用了一个 iframe 的...所以  window.frames[0]
因为这个 iframe 是用 它当中那个控件自动生成的...他是没有 id 的...

function search_data()
         {
       
           window.frames[0].location.href="http://gw/ReportServer?/demo/CapacityFeeLtfee_Monthly_Fx&ReportObjectType=1&ReportObjectIDs=0&BeginMonth=200302&EndMonth=200308&rc:Parameters=false&rs:Command=Render";
           
         }


 控件在:

Reporting Services 非常方便地附带了名为 ReportViewer 的示例(安装到 \Reporting Services\Samples\Applications\ReportViewer 目录),它可以实现这个想法。该控件封装了 IFRAME 和 URL 访问参数逻辑,并提供了一个更简单的用于将报表嵌入到应用程序中的方法。要使用该控件,请打开并构建 ReportViewer 解决方案,然后通过浏览到 ReportViewer 解决方案的 bin 目录中的 ReportViewer.dll,切换到您的 Web 应用程序并将该控件添加到工具箱中。
您可以使用该控件将嵌入报表添加到仪表板应用程序中



posted on 2005-06-14 21:26  gwazy  阅读(556)  评论(0编辑  收藏  举报

导航