f$Word: Document
f$Word: Document
Open or generate a new document.
Please note:
Please keep in mind that the symbol "\" has to be used twice for paths in the file name ("\\").
Syntax:
Status = f$Word(’Document’,’Document Name’,’Option’)
Argument
Type
Meaning
Document
String
Keyword
Document name
String
Name of the document with file extension (.doc) and path information
Option
String
Keyword
’generate’ : Generate an empty document
’Open’: Open a document and update and block the field functions
’Edit’: Open the document and update, but without blocking the field functions.
’Display’: Open the document without updating the field functions.
’’ : The received name is stored internally and used upon saving the document or closing the interface.
Result:
Integer
0: Command successfully executed
-1: The specified document cannot be generated , or opened.
Example:
Status = f$Word(’Document’,’c:\\temp\\offer.doc’,’generate’)