locked
Broken report layout in Report Manager and ASP.NET ReportViewer RRS feed

  • Question

  • Hi,

    I've created some reports using SSRS 2008 R2. They look ok in BIDS 2008 in preview Window

    BIDS

    But things are going bad after deploy to Report server. You can see, that one of columns missing in Report Manager.

    ReportManager

    But the biggest problem is, how the reports look like in ASP.NET ReportViewer. When I tried to display report within it, I'll get this:

    ReportViewer

    Could please somebody tell me why this report looks like completely different? What could be wrong?

    Thank you.


    EDIT:

    When I export report to file (for example PDF) then it's OK.

    Monday, April 11, 2011 3:16 PM

Answers

  • Hi xxviktor,

    From your scenario, report layout in report manager and reportview are different from when preview the report in Business Intelligence Development Studio.

    Reports that are viewed in a browser and run in Report Manager are all using HTML rendering extension. HTML rendering extension is a kind of soft page-break renderer extensions. The resulting file is optimized for screen-based viewing and delivery, such as on a Web page or in the ReportViewer controls

    Referring to these questions that reports look like in ASP.NET ReportViewer and one of columns missing in Report Manager, please look at the following HTML-specific rules which are applied when rendering:

    1. The HTML rendering extension builds a table in HTML to contain each set of report items. Items are positioned in the table to preserve the report layout.
    2. Locations and sizes are expressed in millimeters (mm). Differences of less than .2 mm are rendered as 0 mm.
    3. HTML does not support item overlap. This can result in layout changes as the report is displayed.
    4. A subreport is rendered as a DIV tag in the HTML report.

    When displayed on the client, an HTML report uses the browser-specific settings. In addition to possible font substitutions, other browser settings can likewise produce changes. If you want to precisely control the layout of the report on all clients used to view the report, consider using the image rendering extension (PDF or TIFF).

    For more information, please see the following articles:
    Rendering to HTML (Report Builder 3.0 and SSRS):
    http://msdn.microsoft.com/en-us/library/dd255269.aspx
    Page Layout and Rendering (Report Builder 3.0 and SSRS): http://msdn.microsoft.com/en-us/library/ee210530.aspx#PageLayout

    Thanks,
    Eileen


    • Marked as answer by xxviktor Wednesday, April 13, 2011 8:31 PM
    Wednesday, April 13, 2011 5:16 PM

All replies

  • Hi xxviktor,

    From your scenario, report layout in report manager and reportview are different from when preview the report in Business Intelligence Development Studio.

    Reports that are viewed in a browser and run in Report Manager are all using HTML rendering extension. HTML rendering extension is a kind of soft page-break renderer extensions. The resulting file is optimized for screen-based viewing and delivery, such as on a Web page or in the ReportViewer controls

    Referring to these questions that reports look like in ASP.NET ReportViewer and one of columns missing in Report Manager, please look at the following HTML-specific rules which are applied when rendering:

    1. The HTML rendering extension builds a table in HTML to contain each set of report items. Items are positioned in the table to preserve the report layout.
    2. Locations and sizes are expressed in millimeters (mm). Differences of less than .2 mm are rendered as 0 mm.
    3. HTML does not support item overlap. This can result in layout changes as the report is displayed.
    4. A subreport is rendered as a DIV tag in the HTML report.

    When displayed on the client, an HTML report uses the browser-specific settings. In addition to possible font substitutions, other browser settings can likewise produce changes. If you want to precisely control the layout of the report on all clients used to view the report, consider using the image rendering extension (PDF or TIFF).

    For more information, please see the following articles:
    Rendering to HTML (Report Builder 3.0 and SSRS):
    http://msdn.microsoft.com/en-us/library/dd255269.aspx
    Page Layout and Rendering (Report Builder 3.0 and SSRS): http://msdn.microsoft.com/en-us/library/ee210530.aspx#PageLayout

    Thanks,
    Eileen


    • Marked as answer by xxviktor Wednesday, April 13, 2011 8:31 PM
    Wednesday, April 13, 2011 5:16 PM
  • Thank you for your answer, I'll check it out.
    Wednesday, April 13, 2011 8:31 PM