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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public static C1PrintDocument FromStream(
	Stream stream,
	C1DocumentFormatEnum documentFormat
)
Visual Basic
Public Shared Function FromStream ( _
	stream As Stream, _
	documentFormat As C1DocumentFormatEnum _
) As C1PrintDocument

Parameters

stream
Type: System.IO..::..Stream
The stream from which to load the document.
documentFormat
Type: C1.C1Preview..::..C1DocumentFormatEnum
The document persistence format to use.

Return Value

The C1PrintDocument that was created.

See Also