Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Report Namespace / C1Report Class / RenderToStream Method / RenderToStream(Stream,FileFormatEnum) Method
Stream that will contain the report.
Report format to insert into the output stream.

In This Topic
    RenderToStream(Stream,FileFormatEnum) Method
    In This Topic
    Renders the report into a System.IO.Stream object.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderToStream( _
       ByVal stream As Stream, _
       ByVal fmt As FileFormatEnum _
    ) 
    public void RenderToStream( 
       Stream stream,
       FileFormatEnum fmt
    )

    Parameters

    stream
    Stream that will contain the report.
    fmt
    Report format to insert into the output stream.
    Remarks

    This method is especially useful in ASP.NET scenarios where you want to render reports into Html or Pdf streams, without creating temporary files.

    Not all types of report can be rendered into streams. The Excel format requires OLE compound files and can only be rendered into files.

    See Also