Method ManualEinvoice():createFromFile() Professional

Creates an invoice from a CII XML file.

Syntax
:createFromFile( <cPath> ) --> oInvoice
Parameters
<cPath>
The path of the CII XML file to load.
Return

A new ManualEinvoice object with the data of the document.

Description

Creates a new ManualEinvoice object from a CII XML document stored in a file. The method reads the complete content of the file <cPath> and passes it to ManualEinvoice():createFromString(). Refer to this method for a description of the mapping of the document, the differences after serialization and the supported encodings.

A runtime error is raised if the file cannot be opened, if the file is empty or its size cannot be determined, or if the file cannot be read completely. In addition, all runtime errors raised by ManualEinvoice():createFromString() can occur.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.