Delegate CreateStream
Used by the rendering extension to obtain a stream.
Namespace: Telerik.Reporting.Processing
Assembly: Telerik.Reporting.dll
Syntax
public delegate Stream CreateStream(string name, string extension, Encoding encoding, string mimeType);
Parameters
System.String
name
The name of the stream. |
System.String
extension
The type of the rendering extension. |
System.Text.Encoding
encoding
The encoding used by the stream. |
System.String
mimeType
The MIME type of the stream. |
Returns
System.IO.Stream
The stream to be used by the Reporting engine. |
Remarks
The stream created by the CreateStream delegate is used by the Reporting engine and for best performance it is not advisable to be closed.
Constructors
CreateStream(Object, IntPtr)
Declaration
public CreateStream(object object, IntPtr method)
Parameters
System.Object
object
|
System.IntPtr
method
|
Methods
BeginInvoke(String, String, Encoding, String, AsyncCallback, Object)
Declaration
public virtual IAsyncResult BeginInvoke(string name, string extension, Encoding encoding, string mimeType, AsyncCallback callback, object object)
Parameters
System.String
name
|
System.String
extension
|
System.Text.Encoding
encoding
|
System.String
mimeType
|
System.AsyncCallback
callback
|
System.Object
object
|
Returns
System.IAsyncResult
|
EndInvoke(IAsyncResult)
Declaration
public virtual Stream EndInvoke(IAsyncResult result)
Parameters
System.IAsyncResult
result
|
Returns
System.IO.Stream
|
Invoke(String, String, Encoding, String)
Declaration
public virtual Stream Invoke(string name, string extension, Encoding encoding, string mimeType)
Parameters
System.String
name
|
System.String
extension
|
System.Text.Encoding
encoding
|
System.String
mimeType
|
Returns
System.IO.Stream
|