SQL Server 2005 Reporting Services: Reports are Compressed

一笑奈何 提交于 2019-12-11 07:41:59

问题


I have a report that I am capable of viewing correctly in Internet Explorer (IE) with the help of Reports from SQL Server 2005 Report Server (SSRS). The problem is that the report is compressed to about 100px by 100px in Firefox and probably other browsers such as Safari and Chrome. Also, I am using IIS6.

How can a report be rendered properly in browsers other than IE with SSRS?


回答1:


This is not a firefox issue it is a MS issue with how they developed reporting services (the web based portal to access your reports). It is not compliant with some rules of the Web community, hence the issues you see. The issue pertains to the usage of iFrames. In firefox the iFrame's height has a small default value. In Internet Explorer, iFrames automatically resize based on a document's height. Not so clever.

See this: http://forums.asp.net/t/1135437.aspx

As well as this: http://blog-mstechnology.blogspot.com/2009/08/sql-server-reporting-services-ssrs.html

Mainly this:

To Fix the Issue in Firefox, hope any one the following 2 ways will help us.

Step1:

  1. Go to the following Location, where SQL Server is installed ..\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\Pages

  2. Open ReportViewer.aspx File

  3. add the style property marked in bold and blue color, Then try this style="display:table; margin: 0px; overflow: hidden" ID="ReportViewerControl" runat="server" />

If not Helps the first step, then try the step 2.

Step2:

ADD the following code to the ReportingServices.css file (by default, it's found in "C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportManager\Styles\"):

.DocMapAndReportFrame{ min-height: 860px;}

If you want Width also, then use this code

.DocMapAndReportFrame { min-height: 860px; min-width: 1000px; }




回答2:


I did following to ReportViewer.aspx and that help me Resolve the issue...

    <body style="display:table; margin: 0px; overflow: hidden; height:100%;">
    <form runat="server" ID="ReportViewerForm" style="height:100%;">
    <RS:ReportViewerHost style="display:table;" ID="ReportViewerControl" runat="server" />



回答3:


Just set the form height to 95% in Pages > ReportViewer.aspx



来源:https://stackoverflow.com/questions/3143410/sql-server-2005-reporting-services-reports-are-compressed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!