共用方式為


Report.Render 方法

處理報表並依照指定的格式轉譯它。

命名空間: Microsoft.Reporting.WebForms
組件: Microsoft.ReportViewer.WebForms (在 microsoft.reportviewer.webforms.dll)

語法

'宣告
Public MustOverride Function Render ( _
    format As String, _
    deviceInfo As String, _
    <OutAttribute> ByRef mimeType As String, _
    <OutAttribute> ByRef encoding As String, _
    <OutAttribute> ByRef fileNameExtension As String, _
    <OutAttribute> ByRef streams As String(), _
    <OutAttribute> ByRef warnings As Warning() _
) As Byte()
'用途
Dim instance As Report
Dim format As String
Dim deviceInfo As String
Dim mimeType As String
Dim encoding As String
Dim fileNameExtension As String
Dim streams As String()
Dim warnings As Warning()
Dim value As Byte()

value = instance.Render(format, deviceInfo, mimeType, encoding, fileNameExtension, streams, warnings)
public abstract byte[] Render (
    string format,
    string deviceInfo,
    [OutAttribute] ref string mimeType,
    [OutAttribute] ref string encoding,
    [OutAttribute] ref string fileNameExtension,
    [OutAttribute] ref string[] streams,
    [OutAttribute] ref Warning[] warnings
)
public:
virtual array<unsigned char>^ Render (
    String^ format, 
    String^ deviceInfo, 
    [OutAttribute] String^% mimeType, 
    [OutAttribute] String^% encoding, 
    [OutAttribute] String^% fileNameExtension, 
    [OutAttribute] array<String^>^% streams, 
    [OutAttribute] array<Warning^>^% warnings
) abstract
public abstract byte[] Render (
    String format, 
    String deviceInfo, 
    /** @attribute OutAttribute() */ /** @ref */ String mimeType, 
    /** @attribute OutAttribute() */ /** @ref */ String encoding, 
    /** @attribute OutAttribute() */ /** @ref */ String fileNameExtension, 
    /** @attribute OutAttribute() */ /** @ref */ String[] streams, 
    /** @attribute OutAttribute() */ /** @ref */ Warning[] warnings
)
JScript does not support passing value-type arguments by reference.

參數

  • format
    用來轉譯報表的格式。這個引數對應到轉譯延伸模組。支援的延伸模組包括 XML、NULL、CSV、IMAGE、PDF、HTML4.0、HTML3.2、MHTML、EXCEL 和 HTMLOWC。
  • deviceInfo
    包含 format 參數指定的轉譯延伸模組所需要之裝置特定內容的 XML 字串。如需有關特定輸出格式之裝置資訊設定的詳細資訊,請參閱 SQL Server 2005 Reporting Services 文件集的「裝置資訊設定」。
  • mimeType
    [out] 轉譯報表的 MIME 類型。
  • encoding
    [out] 轉譯報表內容時所用的編碼。
  • fileNameExtension
    [out] 輸出檔所用的副檔名。
  • streams
    [out] 資料流識別碼。您可以利用它們來轉譯關聯於報表的外部資源 (如影像)。
  • warnings
    [out] Warning 物件的陣列,描述報表處理期間所發生的任何警告。

傳回值

指定格式之報表的 Byte 陣列。

備註

請參閱 LocalReportServerReport 實作,以取得特定註解和程式碼範例。

另請參閱

參考

Report 類別
Report 成員
Microsoft.Reporting.WebForms 命名空間