Condividi tramite


Metodo Report.Render

Elabora il report 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 MustOverride 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 value As Byte()

value = instance.Render(format, deviceInfo, mimeType, encoding, fileNameExtension, streams, warnings)
public abstract byte[] Render (
    string format,
    string deviceInfo,
    [OutAttribute] ref string mimeType,
    [OutAttribute] ref string encoding,
    [OutAttribute] ref string fileNameExtension,
    [OutAttribute] ref string[] streams,
    [OutAttribute] ref Warning[] warnings
)
public:
virtual 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
) abstract
public abstract byte[] Render (
    String format, 
    String deviceInfo, 
    /** @attribute OutAttribute() */ /** @ref */ String mimeType, 
    /** @attribute OutAttribute() */ /** @ref */ String encoding, 
    /** @attribute OutAttribute() */ /** @ref */ String fileNameExtension, 
    /** @attribute OutAttribute() */ /** @ref */ String[] streams, 
    /** @attribute OutAttribute() */ /** @ref */ Warning[] warnings
)
JScript does not support passing value-type arguments by reference.

Parametri

  • format
    Formato in cui eseguire il rendering del report. Questo argomento esegue il mapping a un'estensione per il rendering. I formati supportati sono XML, NULL, CSV, IMAGE, PDF, HTML4.0, HTML3.2, MHTML, Excel e HTMLOWC.
  • deviceInfo
    Stringa XML che include il contenuto specifico della periferica necessario per l'estensione per il rendering specificata nel parametro relativo al formato. Per ulteriori informazioni sulle impostazioni relative alle informazioni sulla periferica per specifici formati di output, vedere "Device Information Settings" (informazioni in lingua inglese) nella documentazione relativa a SQL Server 2005 Reporting Services.
  • mimeType
    [out] Tipo MIME del report visualizzabile.
  • encoding
    [out] Codifica utilizzata per il rendering del contenuto del report.
  • fileNameExtension
    [out] Estensione utilizzata per il file di output.
  • streams
    [out] Identificatori di flusso, che è possibile utilizzare per eseguire il rendering delle risorse esterne, ad esempio immagini, associate al report.
  • warnings
    [out] Matrice di oggetti Warning che descrive gli avvisi generati durante l'elaborazione del report.

Valore restituito

Matrice Byte del report nel formato specificato.

Note

Per osservazioni specifiche ed esempi di codice, vedere le implementazioni di LocalReport e ServerReport.

Vedere anche

Riferimento

Classe Report
Membri Report
Spazio dei nomi Microsoft.Reporting.WebForms