Export (0) Print
Expand All
Expand Minimize

CreateStreamCallback Delegate

Provides a stream to the ReportViewer control for rendering.

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

public delegate Stream^ CreateStreamCallback (
	String^ name, 
	String^ extension, 
	Encoding^ encoding, 
	String^ mimeType, 
	bool willSeek
)
/** @delegate */
public delegate Stream CreateStreamCallback (
	String name, 
	String extension, 
	Encoding encoding, 
	String mimeType, 
	boolean willSeek
)
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

name

The name of the stream.

extension

The file name extension to use if a file stream is being created.

encoding

An Encoding enumerator value specifying the character encoding of the stream. This may be null if the stream does not contain characters.

mimeType

A string containing the MIME type of the stream.

willSeek

A Boolean value indicated whether the stream needs to support seeking. If the value is false, the stream will be forward-only and will be sent to the client in chunks as it is created. If the value is true, the stream may be written in any order.

Return Value

A Stream object to which the ReportViewer control can write data.

This delegate function may be passed into the Render method of the LocalReport object to support custom handling of secondary streams. The main body of the report is the first stream that is created.

The following code snippet shows a CreateStreamCallback callback function being passed to the Render method.

No code example is currently available or this language may not be supported.
Show:
© 2015 Microsoft