none
ReportViewer 2008 Size Problems with Non IE Browsers - Firefox, Opera, Safari RRS feed

  • Question

  •  Sorry if this has already been discussed, but I cannot find anything in the search.

    I am having a problem using the reportview webcontrol and having it generate and display a SSRS report full screen (width and height 100%) correctly on any browser other than IE7. Here is a simple page that demonstrates the problem:
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportingServices.aspx.cs" Inherits="ReportingServices.ReportingServices" %> 
     
    <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml">  
    <head runat="server">  
        <title>Reporting Services Module</title> 
        <style type="text/css">  
            html, body, form  
            {  
                margin: 0;  
                padding: 0;  
                height: 100%;  
                overflow: hidden;  
                font-family: Verdana, Tahoma, Arial;  
                font-size: small;  
            }  
        </style> 
    </head> 
    <body> 
        <form id="form1" runat="server">  
            <rsweb:ReportViewer ID="rptMain" runat="server" ProcessingMode="Remote" Width="100%" Height="100%" Style="margin-bottom: 30px;">  
                <ServerReport ReportServerUrl="http://nb-pardue/reportserver$sql2005" ReportPath="/Report Project1/Report1" DisplayName="Test" /> 
            </rsweb:ReportViewer> 
        </form> 
    </body> 
    </html> 

    In Firefox 3.0.5, Opera 9.63, and Safari 3.2.1 the reports all show in a small box (300px, 300px or so) and I cannot get them to take up 100% of the browser.

    I have installed ReportViewer 2008 SP1 and that did not do anything.

    Does anyone know a solution for this?

    TIA,
    Sean
    • Edited by Sean M_ Thursday, January 22, 2009 10:10 PM
    Thursday, January 22, 2009 4:56 PM

Answers

  •  

    Working through this with Microsoft support, they have given me what looks like a solution for the most part.

    Browse to C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\Pages\ReportViewer.aspx  
     
    Add info to the <RS> tag style property.  
     
    Code Snippet  
    <RS:ReportViewerHost style="display:table; margin: 0px; overflow: auto" ID="ReportViewerControl" runat="server" .....  
     
     You can also do this style fix with the ReportViewer control


    <
    rsweb:ReportViewer ID="rptMain" runat="server" ProcessingMode="Remote" Width="100%" Height="100%" Style="display: table !important; margin: 0px; overflow: auto !important;"



    So simple, it's beautiful!

    I wonder why there isn't a KB article or SP fix for this?
    • Marked as answer by Sean M_ Thursday, January 22, 2009 10:16 PM
    Thursday, January 22, 2009 10:10 PM

All replies

  •  

    Working through this with Microsoft support, they have given me what looks like a solution for the most part.

    Browse to C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\Pages\ReportViewer.aspx  
     
    Add info to the <RS> tag style property.  
     
    Code Snippet  
    <RS:ReportViewerHost style="display:table; margin: 0px; overflow: auto" ID="ReportViewerControl" runat="server" .....  
     
     You can also do this style fix with the ReportViewer control


    <
    rsweb:ReportViewer ID="rptMain" runat="server" ProcessingMode="Remote" Width="100%" Height="100%" Style="display: table !important; margin: 0px; overflow: auto !important;"



    So simple, it's beautiful!

    I wonder why there isn't a KB article or SP fix for this?
    • Marked as answer by Sean M_ Thursday, January 22, 2009 10:16 PM
    Thursday, January 22, 2009 10:10 PM
  • Excellent - thanks. That was a pain.
    Thursday, September 9, 2010 11:54 AM
  • Very good. Solved my problem too.


    Gabriel Bauermann
    Monday, November 8, 2010 7:55 PM
  • This also solves the same problem with ReportViewer 2005 control and FireFox!

    Thanks!
    Thursday, November 11, 2010 4:57 PM
  • Thanks to this post! It's helpful to me.
    Monday, March 7, 2011 9:34 AM
  • Thanks. It works in IE8, firefox and Chrome. However, it still doesn't work in ie9.
    Tuesday, March 15, 2011 9:55 AM
  • Awesome! Thank you!
    Thursday, March 24, 2011 8:15 PM
  • I am trying this on SSRS 2012 and VS 2012, it works on Firefox but not in Chrome.

    Any suggestions

    Thanks

    Avinesh


    Wednesday, March 19, 2014 9:36 PM