Page Layout When Exporting as a Web Archive File (Report Builder 1.0)
The Web archive export option saves the Report Builder layout and data as elements in an HTML file. How each item is saved varies depending on the report item.
Report
Elements within the Report RDL element are saved as elements, or tags, within the HEAD section of the HTML document. The following table describes how elements in the Report Builder Report RDL element are saved in HTML.
RDL element |
Saves as |
---|---|
Name |
<TITLE>The Name of the File </TITLE> |
Body
The contents of the Report Builder report are saved in the BODY section of the HTML document. The BODY section contains a DIV tag which includes information for height, width, and border. Items contained within the body of the report are saved as children of the BODY HTML element.
The following table describes how some of the Report Builder report page properties are saved in HTML.
RDL element |
Saves as |
---|---|
Height |
The height attribute of the DIV HTML element. |
Width |
The width attribute of the DIV HTML element. |
Page Height |
Ignored. |
Page Width |
Ignored. |
Note
Multiple, or continuous, columns in the report body are not supported by the Web archive export option. All reports are saved as a single column.
Style
Style elements are saved as CSS styles for HTML 4.0 and as HTML attributes for HTML 3.2. For HTML 4.0, a single CSS style is saved for each report item. The names of the styles are unique across reports. The following table indicates how the Report Builder style attributes map to HTML styles.
Report Builder style |
Description |
HTML 4.0 |
HTML 3.2 |
---|---|---|---|
Border Color |
Color of the border |
border |
bordercolor |
Border Style |
Style of the border |
border |
Ignored |
Border Width |
Width of the border |
border |
border |
Background Color |
Color of the background |
background-color |
bgcolor |
Font Style |
Style of font (Normal, Italic) |
font-style |
<I> |
Font Size |
Size of font |
font-family |
<font face=> |
Font Style |
Style of font (Bold) |
font-style |
<B> |
Text Effects |
Text Effects (Underline, Strikethrough) |
text-decoration |
<U> |
Text Alignment |
Horizontal alignment of text |
text-align |
align |
Vertical Alignment |
Vertical alignment of text |
vertical-align |
valign |
Color |
Color of text |
color |
color |
Padding Left |
Size of padding between left border and text |
padding-left |
Ignored |
Padding Right |
Size of padding between right border and text |
padding-right |
Ignored |
Padding Top |
Size of padding between top border and text |
padding-top |
Ignored |
Padding Bottom |
Size of padding between bottom border and text |
padding-bottom |
Ignored |
Line Height |
Height of the lines of text |
Line-height |
Ignored |
Note
Due to the different tags used for HTML 4.0 and HTML 3.2, the same items may appear differently between the two formats. For example, the tags used to control font weight are more precise in HTML 4.0. Depending on the font weight, text that is bold in HTML 4.0 may not appear bold in HTML 3.2.
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 Books Online.