Tuesday, September 23, 2008

ReportViewer Height + Scrollbars

If the output is mushed height-wise, add this to the ReportServices.css file which can be located under ReportManager/styles:

/* Fix report IFRAME height for Firefox */
.DocMapAndReportFrame
{
min-height: 860px;

}

------------------------------------------------------------------------------------------------

Following code uses javascript to get rid of multiple scrollbars in VS2005 reportviewer control

window.onload=function RemoveScrollbars()

{

document.getElementById("<%=ReportViewer1.ClientID %>").lastChild.firstChild.style.overflow = "visible";

}

<rsweb:ReportViewer

ID="ReportViewer1"

runat="server"

ProcessingMode="Remote"

AsyncRendering="false"

SizeToReportContent="true" />




No comments: