Condividi tramite


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

Elabora il rapporto 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 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()
'Utilizzo
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 returnValue As Byte()

returnValue = instance.Render(format, _
    deviceInfo, mimeType, encoding, fileNameExtension, _
    streams, warnings)
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[]

Parametri

  • format
    Tipo: System.String
    Formato in cui eseguire il rendering del rapporto. Questo argomento esegue il mapping a un'estensione per il rendering.
    In modalità di elaborazione locale le estensioni supportate sono Excel, PDF, Word e Image. Nella modalità di elaborazione remota le estensioni supportate dipendono dalle estensioni supportate dal server di rapporti.
    È possibile accedere all'elenco di estensioni per il rendering utilizzando il metodo ListRenderingExtensions in ServerReport o LocalReport, a seconda della modalità di elaborazione (vedere ProcessingMode).
  • deviceInfo
    Tipo: System.String
    Stringa XML che include il contenuto specifico del dispositivo necessario per l'estensione per il rendering specificata nel parametro relativo al formato. Per ulteriori informazioni sulle impostazioni delle informazioni relative a dispositivi per specifici formati di output, vedere Device Information Settings nella documentazione online di SQL Server.
  • mimeType
    Tipo: System.String%
    [out] Tipo MIME del rapporto sottoposto a rendering.
  • encoding
    Tipo: System.String%
    [out] Codifica utilizzata per il rendering del contenuto del rapporto.
  • fileNameExtension
    Tipo: System.String%
    [out] Estensione utilizzata per il file di output.
  • streams
    Tipo: array<System.String[]%
    [out] Identificatori di flusso che è possibile utilizzare per eseguire il rendering delle risorse esterne, ad esempio immagini, associate al rapporto.

Valore restituito

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

Osservazioni

Per osservazioni specifiche ed esempi di codice, vedere l'implementazione di LocalReport o ServerReport.

Vedere anche

Riferimento

Report Classe

Overload Render

Spazio dei nomi Microsoft.Reporting.WebForms