Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / FromStream Method / FromStream(Stream,C1DocumentFormatEnum) Method
The stream from which to load the document.
The document persistence format to use.

In This Topic
    FromStream(Stream,C1DocumentFormatEnum) Method
    In This Topic
    Creates a new instance of C1PrintDocument class, and loads the document from the specified stream.
    Syntax
    'Declaration
     
    Public Overloads Shared Function FromStream( _
       ByVal stream As Stream, _
       ByVal documentFormat As C1DocumentFormatEnum _
    ) As C1PrintDocument
    public static C1PrintDocument FromStream( 
       Stream stream,
       C1DocumentFormatEnum documentFormat
    )

    Parameters

    stream
    The stream from which to load the document.
    documentFormat
    The document persistence format to use.

    Return Value

    The C1PrintDocument that was created.
    See Also