Udostępnij za pośrednictwem


Metoda Report.Render — (String, String, String%, String%, String%, array<String[]%, array<Warning %)

Processes the report and renders it in the specified format.

Przestrzeń nazw:  Microsoft.Reporting.WebForms
Zestaw:  Microsoft.ReportViewer.WebForms (w Microsoft.ReportViewer.WebForms.dll)

Składnia

'Deklaracja
Public 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()
public byte[] Render(
    string format,
    string deviceInfo,
    out string mimeType,
    out string encoding,
    out string fileNameExtension,
    out string[] streams,
    out Warning[] warnings
)
public:
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
)
member Render : 
        format:string * 
        deviceInfo:string * 
        mimeType:string byref * 
        encoding:string byref * 
        fileNameExtension:string byref * 
        streams:string[] byref * 
        warnings:Warning[] byref -> byte[] 
public function Render(
    format : String, 
    deviceInfo : String, 
    mimeType : String, 
    encoding : String, 
    fileNameExtension : String, 
    streams : String[], 
    warnings : Warning[]
) : byte[]

Parametry

  • format
    Typ: String
    The format in which to render the report. This argument maps to a rendering extension.
    In local processing mode, supported extensions are Excel, PDF, Word, and Image. In remote processing mode, supported extensions depend on the extensions supported by the report server.
    You can access the list of available rendering extensions using the ListRenderingExtensions method in ServerReport or LocalReport, depending on the processing mode (see ProcessingMode).
  • deviceInfo
    Typ: 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
    Typ: String%
    [out] The MIME type of the rendered report.
  • encoding
    Typ: String%
    [out] The encoding used when rendering the contents of the report.
  • fileNameExtension
    Typ: String%
    [out] The file name extension used for the output file.
  • streams
    Typ: array<String[]%
    [out] The stream identifiers You can use them to render the external resources (images, for example) that are associated with the report.

Wartość zwracana

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

Uwagi

See the LocalReport or ServerReport implementations for specific remarks and code samples.

Zobacz też

Informacje

Report Klasa

Przeciążenie Render

Przestrzeń nazw Microsoft.Reporting.WebForms