When Reporting services report is displayed, the scroll bars are not long enough.

Posted on 2009-04-24
Last Modified: 2012-06-27
I created a web form and added a report viewer control to the page in order to view my reporting services report. The report displays, but is mostly hidden, because the scroll bars for the report only are about one inch, by one inch in dimension. So I changed the width to 100% and that fixed the problem. It did not fix the vertical scroll bar problem though. So I totally removed the height attribute and then the the vertical scroll bar was a little bit longer. how do I fix this problem. I would like for the report to be displayed in entire page so lengthening both scroll bars would be nice.

        <td style="height: 100%;">
            <%-- This is where the ReportViewer control will go. --%>
            <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote"
                Height="100%" Width="100%" ShowParameterPrompts="False">

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">

<head runat="server">



<body style="vertical-align: bottom; height: 100%; margin-right: 0px; 

    margin-top: 0px; margin-bottom: 0px; margin-left: 0px; 

    padding-bottom: 0px; padding-top: 0px">

    <form id="form1" runat="server">

   <table style="vertical-align: bottom; border-width: 0px; margin-top: 0px; 

   margin-bottom: 0px; width: 100%; height: 100%; padding: 0px,0px,0px,0px;" 

   cellspacing="0" cellpadding="0">













            <div style="border-top: black 1px solid; 

                background-color: #ece9d8; border-bottom-width: 1px; 

                border-bottom-color: #d4d0c8; padding-bottom: 10px;">

                   <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />

                Custom Controls





        <td style="height: 100%;">

            <%-- This is where the ReportViewer control will go. --%>

            <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" 

                Height="100%" Width="100%" ShowParameterPrompts="False">








Open in new window

Question by:brgdotnet
    LVL 9

    Accepted Solution

    Make use of style attribute and set its properties as per your requirements.
    LVL 2

    Author Comment

    Actually I am aware of how to use the CSS for styling the report. I discovered that the cause of the problem was that a line of XHTML needed to be deleted. Here is the solution if you wish to read it.
    In the ASP.NET code, you will need to delete (or change) this line:

     Collapse Copy Code<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    Refer to this article:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
    Introduction Earlier I wrote an article about the new lookup functions ( that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now