ReportViewer is very sensitive to where I put

The ReportViewer's body doesn't show up if I put the ReportViewer into an HtmlTableCell or TabStrip/Multipage from ComponentArt. I explicitly set the ReportViewer.ShowReportBody to be true. Has anyone experiencing this kind of problem Please help me out. Thanks in advance.

Answer this question

ReportViewer is very sensitive to where I put

  • SteveWolfe

    You may want to consider not using the xhtml doctype. It just doesn't work well with 100% table heights and this can cause scrollbars in some cases for the reportviewer. But ultimately, choosing xhtml or not is something you will need to weigh against your design goals and the other controls on your page.
  • Anders Sneckenborg

    You are probably running into a well known xhtml issue. See www.gotreportviewer.com, FAQ #14. We are working on some ways to make the control less sensitive to these types of things, but for now you will need to follow the workarounds.
  • linkspeed

    Hi Brian,
    Before I saw your reply, I sort of figured out how to make the ReportViewer less sensitive to the environment. The only change I made is setting the ReportViewer's property AsyncRendering to false. Below is my code.
    this.rptViewer.Width = Unit.Percentage(100);
    this.rptViewer.Height = Unit.Percentage(100);
    this.rptViewer.AsyncRendering = false;
    (Before seeing your reply, I didn't know the height would cause the issue.)
    The ReportViewer renders well in both IE and Firefox. The only problem is that the ReportViewer's horizonal and vertical scrollbars disappeared in IE . Do you have any suggestions on that
    After I saw your reply, I changed my code as below.
    this.rptViewer.Width = Unit.Percentage(100);
    /*this.rptViewer.Height = Unit.Percentage(100);*/
    this.rptViewer.AsyncRendering = true;
    The ReportViewer's body and scroll bars show up well in IE. In Firefox, the ReportViewer's width in TabStrip/Multipage is much smaller than the browser's width.
    Thanks a lot for your help.

  • ReportViewer is very sensitive to where I put