Saves the data in the current viewable range for visible pens to the specified file.
[in] Indicates the
name and path of the file that the data will be exported to.
If the function succeeds the return value will be Success. If the function does not succeed the return value will be GeneralFailure.
The timestamp of each sample will be in local time defined by your computer. The start and end sample maybe generated for each pen to indicate the exported range of the data.
Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".
OBJECT hProcessAnalyst = ObjectByName("AN35");
_ObjectCallMethod(hProcessAnalyst, "CopyToFile", "test.xls");