Sdílet prostřednictvím


Report Definition Language Data Types

The following information describes the different types of properties used in the object and collection definitions throughout the Report Designer section of Books Online. All data types appear in Report Definition Language (RDL) as an element unless specified otherwise.

Type

Description

Binary

A property with a base-64 encoded binary value.

Boolean

A property with true or false as the value of the object. Unless specified otherwise, the value of an omitted optional Boolean object is False.

Date

A property with a fully specified date or datetime value specified in ISO8601 date format: YYYY-MM-DD[THH:MM[:SS[.S]]].

Enum

A property with a string text value that must be one of a list of designated values.

Float

A property with a float value. A period (.) is used as the optional decimal separator.

Integer

A property with an integer (int32) value.

Language

A property with a text value that contains a language and culture code, such as "en-us" for US English. The value must either be a specific language or a neutral language for which a default language is defined in the Microsoft .NET Framework.

Name

A property with a string text value. Names must be unique within the namespace of the item. If not specified, the namespace for an item is the innermost containing object that has a name.

NormalizedString

A property with a string text value that has been normalized.

Size

A size element must contain a number (with a period character used as an optional decimal separator). The number must be followed by a designator for a CSS length unit such as cm, mm, in, pt, or pc. A space between the number and the designator is optional. For more information about size designators, see CSS Length Units Reference.

In RDL, the maximum value for Size is 160 in. The minimum size is 0 in.

String

A property with a string text value.

UnsignedInt

A property with an unsigned integer (uint32) value.

Variant

A property with any simple XML type.

DataType Enumeration

DataType Enumeration defines the data type of an attribute, expression, or parameter. A data type must conform to the following Report Designer property type and its corresponding common language runtime (CLR) types. Values from the database that have CLR types are treated as the corresponding Report Designer type.

CLR Type(s)

Corresponding Report Type

Boolean

Boolean

DateTime, DateTimeOffset

DateTime

Int16, Int32, UInt16, Byte, SByte

Integer

Single, Double

Float

String, Char, GUID, Timespan

String