ServerReport.RenderStream Method
Returns a secondary stream associated with a processed report.
Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)
Syntax
'Declaration
Public Function RenderStream ( _
format As String, _
streamId As String, _
deviceInfo As String, _
<OutAttribute> ByRef mimeType As String, _
<OutAttribute> ByRef encoding As String _
) As Byte()
'Usage
Dim instance As ServerReport
Dim format As String
Dim streamId As String
Dim deviceInfo As String
Dim mimeType As String
Dim encoding As String
Dim returnValue As Byte()
returnValue = instance.RenderStream(format, streamId, deviceInfo, mimeType, encoding)
public byte[] RenderStream (
string format,
string streamId,
string deviceInfo,
out string mimeType,
out string encoding
)
public:
array<unsigned char>^ RenderStream (
String^ format,
String^ streamId,
String^ deviceInfo,
[OutAttribute] String^% mimeType,
[OutAttribute] String^% encoding
)
public byte[] RenderStream (
String format,
String streamId,
String deviceInfo,
/** @attribute OutAttribute() */ /** @ref */ String mimeType,
/** @attribute OutAttribute() */ /** @ref */ String encoding
)
JScript does not support passing value-type arguments by reference.
Parameters
- format
The format in which to render the stream. This argument maps to a rendering extension. Supported extensions include XML, NULL, CSV, IMAGE, PDF, HTML4.0, HTML3.2, MHTML, Excel, and HTMLOWC.
- streamId
The stream identifier.
- 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.
- mimeType
The MIME type of the stream.
- encoding
The Microsoft .NET Framework encoding class name.
Return Value
A Byte array of the stream in the specified format. For more information about this data type, see "Byte Structure" in the .NET Framework documentation.
Remarks
Examples of streams include images and charts.
See Also
Reference
ServerReport Class
ServerReport Members
Microsoft.Reporting.WebForms Namespace