次の方法で共有


LocalReport.Render メソッド (String, String, PageCountMode, CreateStreamCallback, Warning[])

 

コールバック関数によって提供されたストリームを使用して、指定のページ カウント モードでレポートを処理し、指定された形式で表示します。

名前空間:   Microsoft.Reporting.WinForms
アセンブリ:  Microsoft.ReportViewer.WinForms (Microsoft.ReportViewer.WinForms.dll 内)

構文

public void Render(
    string format,
    string deviceInfo,
    PageCountMode pageCountMode,
    CreateStreamCallback createStream,
    out Warning[] warnings
)
public:
void Render(
    String^ format,
    String^ deviceInfo,
    PageCountMode pageCountMode,
    CreateStreamCallback^ createStream,
    [OutAttribute] array<Warning^>^% warnings
)
member Render : 
        format:string *
        deviceInfo:string *
        pageCountMode:PageCountMode *
        createStream:CreateStreamCallback *
        warnings:Warning[] byref -> unit
Public Sub Render (
    format As String,
    deviceInfo As String,
    pageCountMode As PageCountMode,
    createStream As CreateStreamCallback,
    <OutAttribute> ByRef warnings As Warning()
)

パラメーター

  • format
    Type: System.String

    レポートを表示する形式。 この引数は、表示拡張機能にマップされます。 サポートされる形式には、Excel、PDF、Word、および画像があります。

    使用可能なレンダリング拡張子にアクセスするには ListRenderingExtensions メソッドを使用します。

  • deviceInfo
    Type: System.String

    format パラメーターに指定されている表示拡張機能に必要な、デバイス固有のコンテンツを含んでいる XML 文字列。 特定の出力形式のデバイス情報設定の詳細については、SQL Server オンライン ブックの「デバイス情報設定」(fe718939-7efe-4c7f-87cb-5f5b09caeff4) を参照してください。

備考

This method accepts a CreateStreamCallback delegate function in the createStream parameter to support custom handling of secondary streams. This method is useful for printing.

After this method completes successfully, the value of pageCountMode will be the default page count mode the LocalReport object uses when you call the M:Microsoft.Reporting.WinForms.LocalReport.GetTotalPages method. For more information, see GetTotalPages.

関連項目

Render オーバーロード
LocalReport クラス
Microsoft.Reporting.WinForms 名前空間

トップに戻る