Tuesday, January 27, 2009

Fixing Sql Reporting Services for FireFox

Sql Reporting Services has an issue with firefox in which reports will show about one inch tall in the report viewer. There is an easy fix for this, but it seems to depend on the version of firefox.
It seems to be the support of attributes on IFrame in firefox.
I'm running on 3.05 and the following works for me:

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

make sure this is in the body tag (prob is by default):

<body style="margin: 0px; overflow: auto">

and the report viewer line should have this added to it: style="display:table;"
so:
<RS:ReportViewerHost style="display:table;" ID="ReportViewerControl" runat="server" />

Some say add one of the following to the ReportingServices.css, however that did not work for me. The above fix did however.


.DocMapAndReportFrame
{
min-height: 660px;
min-width: 1280px;
}
.MenuBarBkGnd
{
min-width:1000px;
}

5 comments:

  1. WONDERFUL!
    It works... finally ;-) Also in SRS 2008
    Many many Thanks

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Neither of those options (updating css or aspx file) seem to be working for me... I did deploy the report again as well but that didnt change anything either... Do I have to refresh the server or something??

    ReplyDelete
  4. I added this to the end of ReportingServices.css:

    table.msrs-normal > tbody > tr > td > table {
    display: table !important;
    }

    ReplyDelete
  5. Got the same iFrame problem with Chrome ,plz any idea?

    ReplyDelete