OpenDocument()

Opens the document identified by the Document Number, specified in DocIDStr. The Value of OpenFlag determines the action OpenDocument will take.

Token ID

AFTKN_DM_OPEN or 854

Syntax

ANSISTRING OpenDocument( ANSISTRING DocIDStr; 
                         [ENUM OpenFlag])

Parameters

DocIDStr As ANSISTRING

String in the form: Domain.PostOffice.Library:Doc#.Ver.#

OpenFlag As ENUM

(Optional) Specifies how to open the document as follows:

199

LaunchApp

202

UseCurrentApp

203

Quickviewer

204

ReadOnly

Return Values

  • ANSISTRING. Path and file name of document.