Horizontal Scroll Bar not displaying when using 2010 ReportViewer control

Answered Horizontal Scroll Bar not displaying when using 2010 ReportViewer control

  • Tuesday, September 18, 2012 6:03 PM
     
     
    We have a VS 2008 matrix report that is viewed within an ASP page using the 2010 viewer control.  When the matrix gets to be too large for the page, we do not get horizontal scroll bars in IE to display the last columns.  The vertical scroll bar appears, but no horizontal bar.  How can we get the horizontal scroll bar to appear?

All Replies

  • Wednesday, September 19, 2012 2:11 PM
     
     Proposed Answer Has Code

    Add this line to the code for a workaround:

    ReportViewer1.Style.Add("margin-bottom", "26px");

    • Proposed As Answer by FunBI Wednesday, September 19, 2012 7:41 PM
    •  
  • Wednesday, September 19, 2012 7:45 PM
     
     

    We tried that, but did not work.  What we have done as a work around is rather than saying "Zoom to page" we have hard coded in a height and width of the control, which then puts in the scroll bars.

  • Thursday, September 20, 2012 5:57 AM
    Moderator
     
     Answered

    Hi dachrist,

    Thanks for your question.

    Based on the current information, please make sure the "SizeToReportContent" property of the ReportViewer control has been set to "False". If the horizontal toolbar is still not visible after that, I suggest that you go with the workaround setting hard coded Height and Width of the ReportViwer control.

    Reference:
    ReportViewer.SizeToReportContent Property

    Regards,
    Mike Yin

    TechNet Subscriber Support
    If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.


    Mike Yin

    TechNet Community Support