void=saveToFile(file:string, password: string)
The function saves an xls file on the disc.
ParametersType of file is string and we insert name of the xls, including the path. Type of password is string. We enter password in case we save an xls or xlsx file protected by a password.
NoteAttention: A new parameter password has been added to the function in version 3.1.
Example - Director
global xls
xls.saveToFile(the pathName&"data.xls", "") ..... file is not protected by a password
xls.saveToFile(the pathName&"data.xls", "abc")
Example - AuthorwareCallObject(xls; "saveToFile"; FileLocation ^ "data.xls"; "") ..... file is not protected by a password
CallObject(xls; "saveToFile"; FileLocation ^ "data.xls"; "abc")