[]
        
(Showing Draft Content)

C1.C1Preview.C1PrintDocument.FromFile

FromFile Method

FromFile(string, C1DocumentFormatEnum)

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

Declaration
public static C1PrintDocument FromFile(string fileName, C1DocumentFormatEnum documentFormat)
Parameters
Type Name Description
string fileName

The name of the file from which to load the document.

C1DocumentFormatEnum documentFormat

The document persistence format to use.

Returns
Type Description
C1PrintDocument

The C1PrintDocument that was created.

FromFile(string)

Creates a new instance of the C1PrintDocument class, and loads the document from the specified file. The persistence format (C1d or C1dx) is determinated by the file extension. If the format cannot be determined by the extension, the C1d format is used.

Declaration
public static C1PrintDocument FromFile(string fileName)
Parameters
Type Name Description
string fileName

The name of the file from which to load the document.

Returns
Type Description
C1PrintDocument

The C1PrintDocument that was created.