ViewFile (Method) - OCR for AnyDoc - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License

Description

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.

Applicable Events

Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify

Syntax

object.ViewFile [strFileName, <optional default TRUE> bUseAnyDocViewer]

Parameters

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.

Example

‘Use the OS Viewer to view the file

Form.ViewFile “C:\AnyDoc\Sample.tif” FALSE