Bagikan melalui


Page Layout and Rendering (Report Builder 3.0 and SSRS)

When you author reports it is important to understand the behavior of the Reporting Services renderers to ensure the rendered report looks the way you want, including page layout and page breaks. You likely also want to make sure the rendered report fits on the paper size that you or your organization commonly uses.

When you view reports in Report Manager or the preview pane of Report Builder or Report Designer, the report in first rendered by the HTML renderer. You can then export the report to different formats such as Excel or Comma Separated File (CSV). The exported report can then be used for further analysis in Excel or as data source for applications that can import and use CSV data files.

Reporting Services includes a set of renderers for exporting reports to different formats. Each renderer has applies rules when rendering reports. When you export a report to a different file format, especially for renderers such as the Adobe Acrobat (PDF) renderer that uses pagination based on the physical page size, you might need to change the layout of your report to have the exported report look and print correctly after the rendering rules are applied.

Getting the best results for exported reports is often an iterative process; you author and preview the report in Report Builder or Report Designer, export the report to the preferred format, review the exported report, and then make changes to the report.

This topic provides information about the Reporting Services rendering extensions and how to work with them.

Note

You can create and modify report definitions (.rdl) in Report Builder 3.0 and in Report Designer in Business Intelligence Development Studio. Each authoring environment provides different ways to create, open, and save reports and related items. For more information, see Designing Reports in Report Designer and Report Builder 3.0 (SSRS) on the Web at microsoft.com.

In This Article

Page Layout and Report Items

Report Sections

Renderers

Rendering Behaviors

Pagination

How-To Topics

In This Section

Page Layout and Report Items

Report items are layout elements that are associated with different types of report data. Table, Matrix, List, Chart, and Gauge are data region report items that each link to a report dataset. When the report is processed, the data region expands across and down the report page to display data. Other report items link to and display a single item. An Image report item links to a picture. A Text Box report item contains either simple text like a title or an expression that can include references to built-in fields, report parameters, or dataset fields. The Line and Rectangle report items provide simple graphical elements on the report page. The Rectangle can also be a container for other report items. A report can contain subreports.

With Reporting Services, you can place report items anywhere on the design surface. You can interactively position, expand, and contract the initial shape of the report item using snap lines and resizing handles. You can place data regions with different sets of data, or even the same data in different formats, side-by-side. When you place a report item on the design surface, it has a default size and shape and an initial relationship to all other report items. You can place many report items each other to create more complex report designs. For example, charts or images in table cells, tables in table cells, and multiple images in a rectangle. In addition to providing the organization and look you want in the report, placing report items in containers such as rectangles help control the way the report items are displayed on the report page.

A report can span multiple pages, with a page header and page footer that are repeated on each page. A report can contain graphical elements such as images and lines, and it can have multiple fonts, colors, and styles, which can be based on expressions.

Report Sections

A report consists of three main sections: an optional page header, an optional page footer, and a report body. The report header and footer are not separate sections of the report, but rather are comprised of the report items that are placed at the top and bottom of the report body. The page header and page footer repeat the same content at the top and bottom of each page of the report. You can place images, text boxes, and lines in headers and footers. You can place all types of report items in the report body.

You can set properties on report items to initially hide or show them on the page. You can set visibility properties on rows or columns or groups for data regions and provide toggle buttons to allow the user to interactively show or hide report data. You can set visibility or initial visibility by using expressions, including expressions based on report parameters.

When a report is processed, report data is combined with the report layout elements and the combined data is sent to a report renderer. The renderer follows predefined rules for report item expansion and determines how much data fits on each page. To design an easy-to-read report that is optimized for the renderer that you plan to use, you should understand the rules used to control pagination in Reporting Services. For more information, see Understanding Pagination in Reporting Services (Report Builder 3.0 and SSRS).

Renderers

Reporting Services includes a set of renderers, also referred to as rendering extensions, that you can use to export reports to different formats. There are three types of renderers:

  • Data renderers   Data renderers strip all formatting and layout information from the report and display only the data. The resulting file can be used to import the raw report data into another file type, such as Excel, or another database, an XML data message, or a custom application. The available data renders are: CSV and XML.

    Note

    Although it does not provide direct export to a different format, Atom rendering generates data files from reports.

  • Soft page-break renderers   Soft page-break renderers maintain the report layout and formatting. The resulting file is optimized for screen-based viewing and delivery, such as on a Web page. The available soft page-break renderers are: Microsoft Excel, Microsoft Word, Web archive (MHTML), and HTML.

  • Hard page-break renderers   Hard page-break renderers maintain the report layout and formatting. The resulting file is optimized for a consistent printing experience, or to view the report online in a book format. The available hard page-break renderers are supported: TIFF and PDF.

When you preview a report in Report Builder or Report Designer or run a report in Report Manager, the report is always first rendered in HTML. After you run the report, you can export it to different file formats. For more information, see Exporting Reports (Report Builder 3.0 and SSRS).

Arrow icon used with Back to Top linkBack to Top

Rendering Behaviors

Depending on the renderer you select, certain rules are applied when rendering the report. How report items fit together on a page is determined by the combination of these factors:

  • Rendering rules.

  • The width and height of report items.

  • The size of the report body.

  • The width and height of the page.

  • Renderer-specific support for paging.

For example, reports rendered to HTML and MHTML formats are optimized for a computer screen-based experience where pages can be various lengths.

For more information, see Understanding Rendering Behaviors (Report Builder 3.0 and SSRS).

Arrow icon used with Back to Top linkBack to Top

Pagination

Pagination refers to the number of pages within a report and how report items are arranged on these pages. Pagination in Reporting Services varies depending on the rendering extension you use to view and deliver the report and the page break and keep-together options you configure the report to use.

To successfully design an easy-to-read report for your users that is optimized for the renderer that you plan to use to deliver your report, you need to understand the rules used to control pagination in Reporting Services. Reports exported by using the data and soft page rendering extensions are typically not affected by pagination. When you use a data rendering extension the report is rendered as tabular rowset in an XML or CSV format. To ensure the exported report data is usable you should understand the rules applied to rendered a flattened tabular rowset from a report.

When you use a soft page rendering extension such as the HTML rendering extension, you might want to know how the report looks printed and also how well it renders using a hard page renderer such as PDF. During the creation or updating of a report you can preview and export it in Report Builder and Report Designer.

The hard page renderers have the most impact on report layout and physical page size. To learn more, see Understanding Pagination in Reporting Services (Report Builder 3.0 and SSRS).

Arrow icon used with Back to Top linkBack to Top

In This Section

The following topics provide additional information about page layout and rendering.

Arrow icon used with Back to Top linkBack to Top