Export Method (PIAnnotation object)

              

 

This method exports a file from an annotation.

 

Syntax

object.Export bstrFilePath

 

The Export method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIAnnotation object.

bstrFilePath

The complete path to the file name to be used when restoring the file.

  

Remarks

The IsFile parameter of the annotation is set to True when the Value of an annotation is a file. The Value of an annotation that is a file contains the complete file path of the file that was imported.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

psePIANN_NOTFILE

The annotation value is not a file. The IsFile parameter is False.

psePIANN_EXPORT

There was an error importing the file.

 

Enabling Operational Intelligence