Udostępnij za pośrednictwem


ServerReport.Render Method (String, String, NameValueCollection, Stream, out String, out String)

Renders the report with optional URL access parameters.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
Public Sub Render ( _
    format As String, _
    deviceInfo As String, _
    urlAccessParameters As NameValueCollection, _
    reportStream As Stream, _
    <OutAttribute> ByRef mimeType As String, _
    <OutAttribute> ByRef fileNameExtension As String _
)
'Usage
Dim instance As ServerReport
Dim format As String
Dim deviceInfo As String
Dim urlAccessParameters As NameValueCollection
Dim reportStream As Stream
Dim mimeType As String
Dim fileNameExtension As String

instance.Render(format, deviceInfo, urlAccessParameters, reportStream, mimeType, fileNameExtension)
public void Render (
    string format,
    string deviceInfo,
    NameValueCollection urlAccessParameters,
    Stream reportStream,
    out string mimeType,
    out string fileNameExtension
)
public:
void Render (
    String^ format, 
    String^ deviceInfo, 
    NameValueCollection^ urlAccessParameters, 
    Stream^ reportStream, 
    [OutAttribute] String^% mimeType, 
    [OutAttribute] String^% fileNameExtension
)
public void Render (
    String format, 
    String deviceInfo, 
    NameValueCollection urlAccessParameters, 
    Stream reportStream, 
    /** @attribute OutAttribute() */ /** @ref */ String mimeType, 
    /** @attribute OutAttribute() */ /** @ref */ String fileNameExtension
)
JScript does not support passing value-type arguments by reference.

Parameters

  • format
    The format in which to render the report. This argument maps to a rendering extension. Supported formats include Microsoft Office Excel, PDF, and Image.
  • deviceInfo
    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 "Device Information Settings" in SQL Server Books Online.
  • urlAccessParameters
    URL access parameters to pass to the report server. For more information, see the URL Access documentation in SQL Server Books Online.

    This parameter may be set to null.

  • reportStream
    The stream into which the rendered report will be written.
  • mimeType
    [out] The MIME type of the rendered report.
  • fileNameExtension
    [out] The file name extension used for the output file.

See Also

Reference

ServerReport Class
ServerReport Members
Microsoft.Reporting.WebForms Namespace