2012-03-07 119 views
2

我已經在SSRS 2008中創建了報告並將它們附加到儀表板。該報告顯示正常,除了大約15-20%的空間被SSRS菜單工具欄佔據,這些菜單工具欄有打印/縮放等選項。有沒有辦法讓我最小化工具欄? 我也有一個可以隱藏的參數欄。但它不會默認隱藏。當儀表板加載時,我有沒有辦法暫時隱藏參數欄? 雖然谷歌我得到這個link,但是當我將該參數添加到部署的報告,我得到的CRM錯誤。我不太確定使用的參數,我正在嘗試。我很確定我正在做某種錯誤。我使用的URL是這樣的:在CRM 2011中使用SSRS 2008創建的報告的隱藏工具欄

這是我的網址與參數: http://xxx3:5555/CCPFINCRM/crmreports/viewer/viewer.aspx?action=filter&helpID=Test.rdl&id=%7bEFAB0D42-2165-E111-916B-90FBA631DAFB%7d&rc:Toolbar=false

錯誤信息如下: enter image description here

+0

什麼是CRM的錯誤信息? – BenPatterson1 2012-03-07 15:59:38

+0

我已更新我的問題。 – Venkatesh 2012-03-08 04:44:55

+0

您的跟蹤日誌中會出現更詳細的錯誤消息(請參閱此處瞭解如何設置跟蹤:http://support.microsoft.com/kb/907490),可以發佈該消息嗎? – BenPatterson1 2012-03-08 14:05:27

回答

1

Sample of working

我的解決方案包括幾個步驟,大多數不支持 - 但它的工作。

  1. 克隆現有的C:\ Program Files文件\ Microsoft動態CRM \ CRMWeb \ CRMReports \瀏覽器\ viewer.aspx到\ viewerNoToolbar.aspx

  2. 更新在viewerNoToolbar.aspx下面的代碼刪除工具欄從SSRS: -

    function reportLoaded() 
    { 
    
    if (oFrame.readyState === "complete") 
    { 
        addToRecent(); 
    } 
    

    function reportLoaded() 
    { 
    
    if (oFrame.readyState === "complete") 
    { 
        addToRecent(); 
        var frameDoc = oFrame.contentDocument || oFrame.contentWindow.document; 
        var reportViewerToolbar = frameDoc.getElementById("reportViewer_Toolbar"); 
        reportViewerToolbar.style.display = "none"; 
    } 
    
  3. 插入一個DIV隱藏現有的CRM工具欄和移動現有resultFrame的IFrame了DIV的

    </div> 
    <table cellspacing="0" cellpadding="0" width="100%" height="100%"> 
    

    </div> 
    <div style="display: none"> 
        <table cellspacing="0" cellpadding="0" width="100%" height="100%"> 
    

    也由

     </table> 
    </body> 
    
    改變之下將其關閉關閉

    (並刪除與resultFrame相關的現有td塊)

     </table> 
        </div> 
        <table cellspacing="0" cellpadding="0" width="100%" height="100%"> 
         <tr style="height: 100%;"> 
          <td colspan="2" style="padding-top: 5px; padding-bottom: 10px; border-width: 2px; 
           border-color: #000000"> 
           <div id="divResultFrame"> 
            <iframe name="resultFrame" id="resultFrame" src="/_static/blank.htm" style="border: 0px; 
             margin: 0px; padding: 0px; width: 100%; height: 100%;"></iframe> 
           </div> 
          </td> 
         </tr> 
        </table> 
    </body> 
    
  4. 更改您的查詢

    http://xxx3:5555/CCPFINCRM/crmreports/viewer/viewerNoToolBar.aspx? 
    

    ,不要擔心RC:工具欄

好運 格倫