Rectangle control not stretching with content in IE7 reportViewer

  • Folks,

    I have a report with several tables, each one is surrounded by a rectangle so that I can control layout and visibility.

    When viewed from the server the report is fine in all IE's.

    In IE7 and IE8 when viewed through a reportviewer 2008 control, the rectanges are not growing with the table content and therefore some table content is obscured.

    The behaviour is fine in IE6 and all the Firefox 3.0's. Has anybody seen this and know a fix?

    Cheers

    M

  • I resolved the problem by removing the DOCTYPE line from the page which housed the reportviewer.

    <!DOCTYPE html PUBLIC β€œ~//W3C//DTD XHTML 1.0 Transitional//EN” "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    After I removed this line, the rectangle control worked again.

    The tip to remove the DOCTYPE line came from MR Robert C. Cain at ArcaneCode.com. The source article can be found here.

    http://arcanecode.com/2007/11/29/sql-server-2005-reporting-services-reportviewer-control-and-ie7/

    Thanks folks

    M

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply