DataElementOutput Element (RDL)

表示項目是出現在由 XML 轉譯延伸模組轉譯的輸出或是 CSV 轉譯延伸模組轉譯的輸出。

語法

<Textbox> <!-- or <Line>, <Rectangle>, <Image>, <Subreport>, <List>, <Matrix>, <Table>, <Chart>, <CustomReportItem>, <Grouping>, <Subtotal>, <DataPoint>  -->
    ...
    <DataElementOutput>...</DataElementOutput>
    ...
</Textbox> <!-- or /Line, /Rectangle, /Image, /Subreport, /List, /Matrix, /Table, /Chart, /CustomReportItem, /Grouping, /Subtotal, /DataPoint -->

元素特性

特性 描述

資料類型和長度

String

預設值 (當成 Grouping 或 DataPoint 的子項使用時)

Output

預設值 (當成 Subtotal 的子項使用時)

NoOutput

預設值 (當成報表項目的子項使用時)

Auto

基數

0-1: 可以出現一次或完全不出現的選擇性元素。

元素關聯性

關聯性 元素

父元素

Chart, CustomReportItem , DataPoint, Grouping, Image, Line, List, Matrix, Rectangle, Subreport, Subtotal, Table, Textbox

子元素

無

備註

由僅適用資料之轉譯器 (CSV 或 XML) 轉譯報表時,DataElementOutput 控制出現的報表項目。

DataElementOutput 元素包含下表中列出的其中一個值。

值 描述

Output

表示項目出現在輸出中。

NoOutput

表示項目不應該出現在輸出中。

ContentsOnly

只適用於 XML。表示項目不會出現在 XML,但是項目的內容會轉譯成所包含之報表項目的一部分。ContentsOnly 只能搭配清單使用。

Auto

如果項目是具有常值的文字方塊 (例如標籤),則項目不會出現 (NoOutput)。如果項目為矩形,則輸出與 ContentsOnly 的輸出相同。所有其他報表項目則會出現在輸出 (Output) 中。

當做 Grouping 或 DataPoint 的子項使用時,DataElementOutput 元素只能包含 Output 或 NoOutput。

請參閱

參考

Report Definition XML Elements

說明及資訊

取得 SQL Server 2005 協助