Udostępnij za pośrednictwem


ServerReport.Render Method (String, String, NameValueCollection, 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 Function Render ( _
    format As String, _
    deviceInfo As String, _
    urlAccessParameters As NameValueCollection, _
    <OutAttribute> ByRef mimeType As String, _
    <OutAttribute> ByRef fileNameExtension As String _
) As Stream
'Usage
Dim instance As ServerReport
Dim format As String
Dim deviceInfo As String
Dim urlAccessParameters As NameValueCollection
Dim mimeType As String
Dim fileNameExtension As String
Dim returnValue As Stream

returnValue = instance.Render(format, deviceInfo, urlAccessParameters, mimeType, fileNameExtension)
public Stream Render (
    string format,
    string deviceInfo,
    NameValueCollection urlAccessParameters,
    out string mimeType,
    out string fileNameExtension
)
public:
Stream^ Render (
    String^ format, 
    String^ deviceInfo, 
    NameValueCollection^ urlAccessParameters, 
    [OutAttribute] String^% mimeType, 
    [OutAttribute] String^% fileNameExtension
)
public Stream Render (
    String format, 
    String deviceInfo, 
    NameValueCollection urlAccessParameters, 
    /** @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.

  • mimeType
    [out] The MIME type of the rendered report.
  • fileNameExtension
    [out] The file name extension used for the output file.

Return Value

A Stream that contains the rendered report.

See Also

Reference

ServerReport Class
ServerReport Members
Microsoft.Reporting.WebForms Namespace