js 中調用reportseivice實現查詢

來源:互聯網
上載者:User
注意 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 應用程式並將該控制項添加到工具箱中。
您可以使用該控制項將嵌入報表添加到儀表板應用程式中

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.