[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.FromStream

FromStream Method

FromStream(Stream, C1DocumentFormatEnum)

Creates a new instance of C1PrintDocument class, and loads the document from the specified stream.

Declaration
public static C1PrintDocument FromStream(Stream stream, C1DocumentFormatEnum documentFormat)
Parameters
Type Name Description
Stream stream

The stream from which to load the document.

C1DocumentFormatEnum documentFormat

The document persistence format to use.

Returns
Type Description
C1PrintDocument

The C1PrintDocument that was created.

FromStream(Stream)

Creates a new instance of the C1PrintDocument class, and loads the document from the specified stream. The stream must contain a document in the C1d format.

Declaration
public static C1PrintDocument FromStream(Stream stream)
Parameters
Type Name Description
Stream stream

The stream from which to load the document.

Returns
Type Description
C1PrintDocument

The C1PrintDocument that was created.