Partilhar via


Método LocalReport.Render (String, String, PageCountMode, String%, String%, String%, array<String[]%, array<Warning %)

Processes the report with a specified page count mode and renders it in the specified format.

Namespace:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (em Microsoft.ReportViewer.WebForms.dll)

Sintaxe

'Declaração
Public Overrides Function Render ( _
    format As String, _
    deviceInfo As String, _
    pageCountMode As PageCountMode, _
    <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()
public override byte[] Render(
    string format,
    string deviceInfo,
    PageCountMode pageCountMode,
    out string mimeType,
    out string encoding,
    out string fileNameExtension,
    out string[] streams,
    out Warning[] warnings
)
public:
virtual array<unsigned char>^ Render(
    String^ format, 
    String^ deviceInfo, 
    PageCountMode pageCountMode, 
    [OutAttribute] String^% mimeType, 
    [OutAttribute] String^% encoding, 
    [OutAttribute] String^% fileNameExtension, 
    [OutAttribute] array<String^>^% streams, 
    [OutAttribute] array<Warning^>^% warnings
) override
abstract Render : 
        format:string * 
        deviceInfo:string * 
        pageCountMode:PageCountMode * 
        mimeType:string byref * 
        encoding:string byref * 
        fileNameExtension:string byref * 
        streams:string[] byref * 
        warnings:Warning[] byref -> byte[] 
override Render : 
        format:string * 
        deviceInfo:string * 
        pageCountMode:PageCountMode * 
        mimeType:string byref * 
        encoding:string byref * 
        fileNameExtension:string byref * 
        streams:string[] byref * 
        warnings:Warning[] byref -> byte[] 
public override function Render(
    format : String, 
    deviceInfo : String, 
    pageCountMode : PageCountMode, 
    mimeType : String, 
    encoding : String, 
    fileNameExtension : String, 
    streams : String[], 
    warnings : Warning[]
) : byte[]

Parâmetros

  • format
    Tipo: String
    The format in which to render the report. This argument maps to a rendering extension. Supported formats include Excel, PDF, Word, and Image.
    To access the list of available rendering extensions, use the ListRenderingExtensions method.
  • deviceInfo
    Tipo: String
    An XML string that contains the device-specific content that is required by the rendering extension specified in the format parameter. For more information about device information settings for specific output formats, see fe718939-7efe-4c7f-87cb-5f5b09caeff4 Device Information Settings in SQL Server Books Online.
  • mimeType
    Tipo: String%
    [out] The MIME type of the rendered report.
  • encoding
    Tipo: String%
    [out] The encoding used when rendering the contents of the report.
  • fileNameExtension
    Tipo: String%
    [out] The file name extension used for the output file.
  • streams
    Tipo: array<String[]%
    [out] The stream identifiers. You can use them to render external resources (images, for example) that are associated with the report.

Valor de retorno

Tipo: array<Byte[]
A Byte array of the report in the specified format.

Comentários

This method can be used to export and print a report.

After this method completes successfully, the value of pageCountMode affects the page count mode the LocalReport object uses when you call the GetTotalPages method. For more information, see GetTotalPages.

Consulte também

Referência

LocalReport Classe

Sobrecargas Render

Namespace Microsoft.Reporting.WebForms