OpenDocumentReadOnly()

Opens the document identified by the Document Number, specified in DocIDStr, in read-only mode. The Value of OpenFlag determines the action OpenDocumentReadOnly will take.

Token ID

AFTKN_DM_READONLYOPEN or 857

Syntax

ANSISTRING OpenDocumentReadOnly( 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.