[]
Creates a new instance of the C1PrintDocument class, and loads the document from the specified file.
public static C1PrintDocument FromFile(string fileName, C1DocumentFormatEnum documentFormat)
Type | Name | Description |
---|---|---|
string | fileName | The name of the file from which to load the document. |
C1DocumentFormatEnum | documentFormat | The document persistence format to use. |
Type | Description |
---|---|
C1PrintDocument | The C1PrintDocument that was created. |
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.
public static C1PrintDocument FromFile(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | The name of the file from which to load the document. |
Type | Description |
---|---|
C1PrintDocument | The C1PrintDocument that was created. |