ViewFile Method

The ViewFile method opens the specified file in the associated viewer.

Syntax

ViewFile(file, [cache])

Parameters

file

Required. The name of the file.

cache

Optional. Specifies whether the disk cache should be used when viewing the file. This can be one of the following values:

ConstantDescription
0The disk cache will not be used. This is the default behavior.
1The file will be copied to the disk cache before it is opened in the viewer. The caller can safely delete the file immediately after the method returns.
2The file will be moved to the disk cache before it is opened in the viewer. The file will be automatically deleted from the cache once the user closes the viewer window.

Return Values

This method does not return a value.

See Also

Salamander Object