ServerReport.Render Method (String, String, NameValueCollection, Stream, 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 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
)
member Render :
format:string *
deviceInfo:string *
urlAccessParameters:NameValueCollection *
reportStream:Stream *
mimeType:string byref *
fileNameExtension:string byref -> unit
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
)
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.
reportStream
Type: System.IO.StreamThe stream into which the rendered report will be written.
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.
See Also
Render Overload
ServerReport Class
Microsoft.Reporting.WinForms Namespace
Return to top