报告观察者宽度/高度不Mozila Firefox正常显示,但在IE完美显示。在Mozila Dispaly大小450 width and 175 height和完美的IE在整页显示。我在PX而非%年龄,但得到相同的设置宽度。 有没有人有这个问题的解决方案? 这是我的.aspx page source

 <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>
有帮助吗?

解决方案

非常棘手的溶液...... 搜索结果添加这种风格,解决问题,但某些功能缺失为微软指出 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;

和其解决问题

其他提示

您在IE中触发怪异模式,一个偶然的机会?反正它是很难说会发生什么,除非你指定适用于所有的更高级别的元素的样式(身体?)

这是帮助我的宽度问题...

  

浏览到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" .....

这里

打印和搜索将无法正常工作。我们创建PDF文档,并利用它来进行打印和搜索......

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top