locked
How to disable vertical scroll bar of microsoft report viewer control RRS feed

  • Question

  • User1958946206 posted

    I am trying to display a report .rdl by using microsoft report viewer on a web form. i got 2 vertical scrollbar appear in report when i run the report. Does any one knows how to disable it?

    Friday, January 21, 2011 1:34 AM

Answers

  • User1471008070 posted

    Hi,

    You can achieve this requirement in local report. Just type in below code in code-behind:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

    protected void Page_Load(object sender, EventArgs e)<o:p></o:p>

    {<o:p></o:p>

        if (!Page.IsPostBack)<o:p></o:p>

    {<o:p></o:p>

        ………//other code<o:p></o:p>

    <o:p> </o:p>

            this.ReportViewer1.AsyncRendering = false;<o:p></o:p>

            this.ReportViewer1.SizeToReportContent = true;<o:p></o:p>

            this.ReportViewer1.ZoomMode = ZoomMode.FullPage;<o:p></o:p>

    <o:p> </o:p>

            ………//other code     <o:p></o:p>

        }<o:p></o:p>

    }<o:p></o:p>

    Relevant thread:<o:p></o:p>

    1.http://forums.asp.net/t/1636165.aspx

    2.  http://forums.asp.net/t/1635999.aspx 

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 25, 2011 5:49 AM