共用方式為


Field Element (RDL)

Describes each field in the dataset.

語法

<Fields >
    ...
        <Field Name="...">
             <DataField> <!-- or <Value> -->...</DataField <!--or /Value -->
        </Field>
    ...
</Fields>

Element Characteristics

Characteristic Description

Data type and length

None

Default value

None

Cardinality

1-n: Required element that occurs once or more than once.

Element Attributes

Attribute Type Description

Name

String

Name of the field within the report. Required.

Element Relationships

Relationship Element

Parent element

Fields

Child elements

DataField, Value

備註

The field name is the name of the field as it is referred to within the report. The data field is the name of the field that is returned from the query. Field names have to be unique within the containing Fields collection. Data fields do not have to be unique, and multiple fields can use the same data field name.

The Field element must have one and only one child element: either DataField or Value.

請參閱

參考

Report Definition XML Elements

說明及資訊

取得 SQL Server 2005 協助