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

BackgroundColor Element (RDL)

The color of the background of the item.

BackgroundGradientType Element (RDL)

The direction in which the background gradient is displayed.

BackgroundGradientEndColor Element (RDL)

The end color of the background gradient. If omitted, the item has no background gradient.

BackgroundImage Element (RDL)

An image to display as the background of the item.

BorderColor Element (RDL)

The color of the border of the item.

BorderStyle Element (RDL)

The style of the border of the item. For example, dotted, dashed, or solid.

BorderWidth Element (RDL)

The width of the border of the item.

Calendar Element (RDL)

The calendar to use to format dates.

Color Element (RDL)

The color of the text in the item.

Direction Element (RDL)

Indicates the direction of the text.

FontFamily Element (RDL)

The name of the font to use for the text in the item.

FontSize Element (ASSL)

The size of the font in points.

FontStyle Element (RDL)

The style of the font for the text in the item. For example, italic.

FontWeight Element (RDL)

The thickness of the font for the text in the item.

Format Element (RDL)

The Microsoft .NET Framework formatting string to apply to the item. For example, C for currency.

Language Element (Report) (RDL)

The primary language of the text.

LineHeight Element (RDL)

The height of a line of text. If not specified, the height is based on the font size.

NumeralLanguage Element (RDL)

The digit format to use, based on the language property.

NumeralVariant Element (RDL)

The variant of digit format to use.

PaddingBottom Element (RDL)

The amount of space to insert between the bottom edge of the item and the text or image in the item.

PaddingLeft Element (RDL)

The amount of space to insert to the between the left edge of the item and the text or image in the item.

PaddingRight Element (RDL)

The amount of space to insert between the right edge of the item and the text or image in the item.

PaddingTop Element (RDL)

The amount of space to insert between the top edge of the item and the text or image in the item.

TextAlign Element (RDL)

The horizontal alignment of the text in the item. For example, left, right, or center.

TextDecoration Element (RDL)

Indicates a special effect to apply to the font for the text in the item. For example, underline.

UnicodeBiDi Element (RDL)

The level of bidirectional embedding.

VerticalAlign Element (RDL)

The vertical alignment of the text in the item. For example, top, middle, or bottom.

WritingMode Element (RDL)

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

Help and Information

Getting SQL Server 2005 Assistance