ServerReport.Render Method (String, String, NameValueCollection, String, String)
Renders the report with optional URL access parameters.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
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
)
member Render :
format:string *
deviceInfo:string *
urlAccessParameters:NameValueCollection *
mimeType:string byref *
fileNameExtension:string byref -> Stream
Public Function Render (
format As String,
deviceInfo As String,
urlAccessParameters As NameValueCollection,
<OutAttribute> ByRef mimeType As String,
<OutAttribute> ByRef fileNameExtension As String
) As Stream
Parameters
format
Type: System.StringThe format in which to render the report. This argument maps to a rendering extension. You can use any rendering extension available on the report server.
To access the list of available rendering extensions, use the ListRenderingExtensions method.
deviceInfo
Type: System.StringAn 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 fe718939-7efe-4c7f-87cb-5f5b09caeff4 Device Information Settings in SQL Server Books Online.
urlAccessParameters
Type: System.Collections.Specialized.NameValueCollectionURL 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
Type: System.String[out] The MIME type of the rendered report.
fileNameExtension
Type: System.String[out] The file name extension used for the output file.
Return Value
Type: System.IO.Stream
A Stream containing the rendered report.
See Also
Render Overload
ServerReport Class
Microsoft.Reporting.WinForms Namespace
Return to top