Using the Process Analyst > Process Analyst for Developers > Automation Model > IProcessAnalyst.CopyToFile [Method]

IProcessAnalyst.CopyToFile [Method]

Saves the data in the current viewable range for visible pens to the specified file.

Defined As



[in] Indicates the name and path of the file that the data will be exported to.

Execution Result

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.

See Also

IProcessAnalyst.CopyToClipboard [Method]

Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".


Sub Example()
myPage_AN35.CopyToFile "test.xls"
End Sub


Sub Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
_ObjectCallMethod(hProcessAnalyst, "CopyToFile", "test.xls");
End Sub