Condividi tramite


Metodo LocalReport.Render (String, String, PageCountMode, String%, String%, String%, array<String[]%, array<Warning[]%)

Elabora il report con una modalità di conteggio delle pagine specificata e ne esegue il rendering nel formato specificato.

Spazio dei nomi:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (in Microsoft.ReportViewer.WebForms.dll)

Sintassi

'Dichiarazione
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[]

Parametri

  • format
    Tipo: String
    Formato in cui eseguire il rendering del report.Questo argomento esegue il mapping a un'estensione per il rendering.I formati supportati sono Excel, Word e Image.
    Per accedere all'elenco di estensioni per il rendering disponibili, usare il metodo ListRenderingExtensions.
  • deviceInfo
    Tipo: String
    Stringa XML che include il contenuto specifico del dispositivo necessario per l'estensione per il rendering specificata nel parametro relativo al formato.Per altre informazioni sulle impostazioni relative alle informazioni sul dispositivo per specifici formati di output, vedere l'argomento sulle impostazioni relative alle informazioni sul dispositivo nella documentazione online di SQL Server.
  • mimeType
    Tipo: String%
    [out] Tipo MIME del report sottoposto a rendering.
  • encoding
    Tipo: String%
    [out] Codifica usata per il rendering del contenuto del report.
  • fileNameExtension
    Tipo: String%
    [out] Estensione usata per il file di output.
  • streams
    Tipo: array<String[]%
    [out] Identificatori di flusso,che è possibile usare per eseguire il rendering delle risorse esterne, ad esempio immagini, associate al report.

Valore restituito

Tipo: array<Byte[]
Matrice Byte del report nel formato specificato.

Note

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.

Vedere anche

Riferimenti

LocalReport Classe

Overload Render

Spazio dei nomi Microsoft.Reporting.WebForms