語言

ICustomReportItem 介面

定義

包含由自訂報告項目執行時元件實作的方法與屬性。

public interface class ICustomReportItem
public interface ICustomReportItem
type ICustomReportItem = interface
Public Interface ICustomReportItem

備註

在每次報表執行時,會建立一個實作 ICustomReportItem 類別的實例,該實例包含對應 CustomReportItem 型別的任何實例。 對於報告中出現的每個匹配型態的 實 CustomReportItem 例, CustomItem 都被設定,然後 Process 被呼叫。 由於報表伺服器是多執行緒的,實作 ICustomReportItem 的類別應避免使用靜態成員變數。

若在建立類別時發生故障,則不會安裝自訂報告項目類別。 任何其他失敗都會導致整個報告執行失敗。

欲了解更多資訊,請參閱 自訂報告項目。

屬性

名稱 Description
Action

會獲得自訂報告項目的動作。

CustomItem

設定自訂報告項目及相關資料,供自訂報告項目執行時元件呈現標準報告項目。 唯寫的。

RenderItem

取得自訂報告項目的渲染映像。

方法

名稱 Description
Process()

渲染自訂報告項目並將其放入屬性中 RenderItem 。

適用於