Partilhar via


Report Item Behavior when Exporting as a Web Archive File (Report Builder)

The Web Archive export option saves the Report Builder layout and data as an HTML file. How each item is displayed varies depending on the report item.

Report Items

Tables, matrixes, and charts are saved as TD elements within the table. The page-break-inside property of the TD element is set to avoid (HTML 4.0).

The following table describes how common report item sub-elements are rendered in the TD element. Sub-elements specific to each report item are discussed later in this topic.

RDL element Saves as

Name

Ignored.

Top

Determines the top position of the item. Also determines which item is positioned first in the case of overlapping items.

Left

Determines the left position of the item. Also determines which item is positioned first in the case of overlapping items.

Height

The HEIGHT attribute for items with a height that cannot change.

Width

The WIDTH attribute for items with a width that cannot change.

ZIndex

Determines which item is positioned first in the case of overlapping items.

Label

The TITLE attribute. Also rendered as the ALT attribute for images.

HTML does not support overlapping items, and will position these items next to each other on the page. To determine the position of overlapping items, the export option first considers the value of the Top element for the items, then the value of the Left element, and then the value of ZIndex.

Matrix

A matrix is saved as a TABLE tag in the HTML document. This table contains the matrix corner, columns, and rows, in separate cells. A TR tag is saved for each column element and each row value or subtotal.

Corner

The Corner is saved as a TD tag in the HTML document. This tag contains ROWSPAN attribute with a value equal to the number of column elements, and a COLSPAN attribute with a value equal to the number of row elements.

Column Grouping

The column grouping is saved as a TR tag in the HTML document. This tag contains a TD element for each data value and subtotal, and also has a COLSPAN attribute with a value equal to the number of columns in the column grouping. The Height format option determines the height of the column grouping TR tag.

Row Grouping

The row grouping is saved as a TR tag for each row value or subtotal in the HTML document. This tag contains a TD element for each data value and subtotal, and also has a ROWSPAN attribute with a value equal to the number of rows in the row grouping. Hidden row groupings display a subtotal in place of the hidden rows.

The Width element within the RowGrouping RDL element determines the width of the row grouping TR tag.

Subtotal

The subtotal is saved as a TD tag containing the name of the subtotal. This TD tag also has a COLSPAN or ROWSPAN attribute.

Matrix Cell

The report items contained within a matrix cell are saved as TD tags for each row and column. The height and width of the TD element is determined by the width of the matrix column and the height of the matrix row.

Table

A table is saved as a TABLE tag in the HTML document. This table contains the table columns, rows, and details in separate cells.

Table Column

The Width format option determines the width of the column.

Table Row

Each row is rendered as a TR tag in the HTML document. The Line height Format option determines the height of the table row TR tag.

TableCell

A table cell is rendered as a TD tag in the HTML document.

Chart

A chart is rendered as an IMG tag in the HTML document.

Text Boxes

A text box is saved as a DIV element that contains a SPAN attribute in the HTML document. If the output format is HTML 3.2, the text box is saved as a TABLE element with a single cell.

The CanGrow and CanShrink RDL elements are rendered by the HTML rendering extension as follows:

CanGrow HTML 4.0 HTML 3.2

False

The height and width of the text box are rendered; overflow is hidden.

The height and width of the text box are rendered.

True

The height and width of the text box are rendered; overflow is visible.

The width of the text box is rendered. The height is ignored.

False

The text is rendered inside a parent DIV element. Height and width of the DIV are rendered; overflow is hidden.

The height and width of the text box are rendered.

True

The width of the text box is rendered, overflow-y is visible, and overflow-x is hidden. Height is ignored.

The width of the text box is rendered. The height is ignored.

Images

An image is saved as an IMG tag in the HTML document. The following table describes how image formatting options are saved by the Web Archive export option.

Sizing HTML 4.0 HTML 3.2

Clip

The IMG tag is placed inside a DIV tab and overflow is hidden. The height and width are applied to the DIV as styles.

Width and height are converted to pixels and saved as attributes.

Fit to Field

Width and height are saved as styles.

Width and height are converted to pixels and saved as attributes.

Fit proportional to original size

The IMG tag is placed inside a DIV tag and overflow is hidden. The height and width are applied to the DIV tag as styles. If JavaScript is enabled, a Jscript script is included to resize the image after it is downloaded to the browser.

Width and height are converted to pixels and saved as attributes.

Autosize

Width and height are not saved.

Width and height are not saved.

To better understand how the Web archive export option saves the Report Definition Language (RDL) elements in a report as a Web archive file, you might want to learn more about the elements. For more information about RDL elements, see the Report Definition Language topic in SQL Server 2005 Books Online.

See Also

Tasks

How to: Export a Report as a Different File Type (Report Builder)

Concepts

Exporting a Report as a Different File Type (Report Builder)
Design Considerations for Exporting a Report as a Different File Type (Report Builder)
Exporting a Report as a Web Archive File (Report Builder)

Help and Information

Getting SQL Server 2005 Assistance