The problem with the width of the screen viewing the report in Mozila

The width / height of the report view does not display correctly in Mozila Firefox, but it displays perfectly in IE. Size of Dispaly in Mozila 450 width and 175 heightand excellent in is IEshown on the full page. I set the width to px instead of% age, but I get the same. Anyone have a solution to this problem? here is my.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>
+3
source share
4 answers

A very complicated solution ......

Add this style, fix the problem, but some functions are missing, as Microsoft indicated 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. , : , ,

style="display:inline-block"

, , ,

 display: table !important;

+4

quirks IE, ? , , , (?)

0

...

C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\Pages\ReportViewer.aspx

.

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

.

. pdf- ...

0

Source: https://habr.com/ru/post/1709746/


All Articles