Read-only. Takes a parameter of the fully qualified file to view and optionally a Boolean indicating whether to use the AnyDoc viewer for TIF files. All other file types will use the Operating System's registered viewer.
Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify
object.ViewFile [strFileName, <optional default TRUE> bUseAnyDocViewer]
Object is a reference to the Form object. For more information, see Form Object (page Form Object).
ViewFile is the command.
strFileName is the fully qualified path of the file to be viewed.
bUseAnyDocViewer specifies which viewer will be used to view the file. TRUE indicates that the AnyDoc viewer will be used for .TIF files. FALSE indicates that the Operating System's registered view will be used.
‘Use the OS Viewer to view the file
Form.ViewFile “C:\AnyDoc\Sample.tif” FALSE