Share via


XMLExcelDocument_RU.newFile Method [AX 2012]

Copies a file to a specified location and opens it. If the location is omitted, the file is copied to a temporary path.

Syntax

public boolean newFile([Filename _template, Filename _newFileName])

Run On

Called

Parameters

Return Value

Type: boolean
true if the file was copied and opened; otherwise, false.

Exceptions

Exception Condition
Error

There was no occurrence of the template file.

-or-

The file cannot be copied.

See Also

Reference

XMLExcelDocument_RU Class