[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.Load

Load Method

Load(Stream)

Loads the current document from a stream. The stream should contain a document in C1d format.

Declaration
public void Load(Stream stream)
Parameters
Type Name Description
Stream stream

The stream from which to load the document.

Load(Stream, C1DocumentFormatEnum)

Loads the current document from a stream.

Declaration
public void Load(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.

Load(string)

Loads the current document from a file. The persistence format (C1d or C1dx) is determined by the file extension. The format defaults to C1d if the format cannot be determined from the extension.

Declaration
public void Load(string fileName)
Parameters
Type Name Description
string fileName

The source file name.

Load(string, C1DocumentFormatEnum)

Loads the current document from a file.

Declaration
public void Load(string fileName, C1DocumentFormatEnum documentFormat)
Parameters
Type Name Description
string fileName

The source file name.

C1DocumentFormatEnum documentFormat

The document persistence format to use.