2009-06-04 60 views
3

報告查看器寬度/高度在Mozila Firefox中顯示不正確,但在IE中完美顯示。顯示在Mozila的顯示尺寸爲450 width and 175 height,完全顯示在完整頁面中的IE。我已經設置了px的寬度,而不是%的年齡,但變得相同。 有沒有人有這個問題的解決方案? 這裏是我的IE .aspx page sourceMozila報告查看器寬度問題

<form id="form1" runat="server"> 
<div id="divException" runat="server" style="text-align: center; padding-top: 100px" 
    visible="false"> 
    <asp:Label ID="lblException" runat="server" Text="Sorry, no data found!!!" Font-Size="Large" 
     ForeColor="Red"></asp:Label> 
</div> 
<div style="height: 100%; width: 100%;"> 
    <rsweb:ReportViewer ID="rptvReport" runat="server" Width="100%" Height="95%"> 
    </rsweb:ReportViewer> 
</div> 
</form> 
+0

我已經使用SQL Reporting Services。 – 2009-06-04 09:27:04

回答

4

非常棘手的解決方案......

添加這種風格,解決問題,但某些功能缺失爲微軟指出 http://msdn.microsoft.com/en-us/library/ms156511.aspx

<style type="text/css"> 
    html, body, form 
    { 
     width: 100%; 
     height: 100%; 
     margin: 0; 
     padding: 0; 
    } 
    table#rptvReport 
    { 
     display: table !important; 
     background-color:White; 
     min-height:500px; 
    } 
</style> 

哪裏,這是rptvReport中的ReportViewer的ID,這裏應該設置你的ReportView控件的ID。 其實什麼是這裏的問題是,當報告呈現一臺具有樣式屬性像

style="display:inline-block" 

即創建問題,我已經在這裏做的是改變這種成

display: table !important; 

和決心問題

+0

感謝這工作正常 – zulucoda 2012-02-08 08:20:53

0

你觸發怪異模式,一個偶然的機會?無論如何,除非您指定適用於所有更高級別元素(body?)的樣式,否則很難說明什麼發生了。

+0

感謝您的快速回復 我只在head標籤中添加以下樣式,而在頁面中沒有其他定義。 2009-06-04 08:41:43

0

,幫助我的寬度問題...

瀏覽到C:\ Program Files文件\ Microsoft SQL Server的\ MSSQL.3 \ Reporting Services的\的ReportServer \網頁\ ReportViewer.aspx

將信息添加到標籤樣式屬性。

<RS:ReportViewerHost style="display:table; margin: 0px; overflow: auto" ID="ReportViewerControl" runat="server" ..... 

here

打印和搜索不起作用。我們創建PDF文檔,並利用它來進行打印和搜索......

+0

我在這個目錄下找不到 C:\ Program Files \ Microsoft SQL Server \ 這裏我找到了MSSQL.1和MSSQL.2但是沒有找到MSSQL.3等..... – 2009-06-04 11:20:03