Applying Style Properties to Report Items
Each report item has style properties that control the appearance of the item. These properties include border style, color, font style, and padding. Some styles are not available to all report items. For example, font style properties apply only to a text box or subtotal, because only those items can contain text. You can apply the same border style and padding properties to all sides of a report item, or you can apply different styles to each side of the item.
You apply a style property to an item in Report Designer by selecting the item and editing the properties in the Properties dialog box for the item or by changing the property for the item in the Properties window.
Note
The FontFamily property lists all fonts that are available on the local computer. If the font that you want exists on the report server but not on the local computer, you can type the name of the font. Any fonts used in a report definition must exist on the report server or client computer for the text to display properly. For example, reports rendered with the Image rendering extension require the fonts to be installed on the server. Reports rendered with the HTML rendering extension require the fonts to be installed on the client computer.
Reporting Services Style Properties
Style property | Description |
---|---|
The color of the background of the item. |
|
The direction in which the background gradient is displayed. |
|
The end color of the background gradient. If omitted, the item has no background gradient. |
|
An image to display as the background of the item. |
|
The color of the border of the item. |
|
The style of the border of the item. For example, dotted, dashed, or solid. |
|
The width of the border of the item. |
|
The calendar to use to format dates. |
|
The color of the text in the item. |
|
Indicates the direction of the text. |
|
The name of the font to use for the text in the item. |
|
The size of the font in points. |
|
The style of the font for the text in the item. For example, italic. |
|
The thickness of the font for the text in the item. |
|
The Microsoft .NET Framework formatting string to apply to the item. For example, C for currency. |
|
The primary language of the text. |
|
The height of a line of text. If not specified, the height is based on the font size. |
|
The digit format to use, based on the language property. |
|
The variant of digit format to use. |
|
The amount of space to insert between the bottom edge of the item and the text or image in the item. |
|
The amount of space to insert to the between the left edge of the item and the text or image in the item. |
|
The amount of space to insert between the right edge of the item and the text or image in the item. |
|
The amount of space to insert between the top edge of the item and the text or image in the item. |
|
The horizontal alignment of the text in the item. For example, left, right, or center. |
|
Indicates a special effect to apply to the font for the text in the item. For example, underline. |
|
The level of bidirectional embedding. |
|
The vertical alignment of the text in the item. For example, top, middle, or bottom. |
|
Indicates the direction of the text. |
Note
Some TextDecoration styles may not display in some environments. For example, the Overline text decoration does not display in a chart.
The Borders Toolbar
Report Designer provides a borders toolbar that you can use to change the border style of selected report items. To apply borders through the toolbar, select the report item, table, or matrix cell. On the toolbar, select the border style, the border width, and the border color, and then select the borders to which you want to apply the style. The borders available on the toolbar vary depending on which report items are selected. For example, you can only apply style to the outer border of a text box, but multiple borders are available for multiple cells in a table. The style is not applied until you select the borders on the toolbar.
See Also
Concepts
Formatting Report Items
Designing the Report Layout