Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

(Document)

Mnemonic: (Document=string-argument, string argument)
Discussion: The (Document) mnemonic specifies a file name and Comet directory to be used for pdf, html, or txt print files. You may issue the mnemonic several times to produce multiple uniquely-named copies of the output file. Because a qdir entry will not be created for this file, you may use long filenames. CosP uses CometLib to make the document copies. Thus, a COM license is required to use this mnemonic.

The first string-argument is a string constant or variable containing the file name. If the name does not contain an extension, the appropriate one (.pdf, .html, or .txt) will be added depending on the type of printer being used. The second string-argument is the 3-character name of the CFAM directory where the file will be created.

If the second argument is an empty string, it is assumed that the first argument is a fully qualified windows path to the output file. This path may not contain a directory alias. If a directory alias is required, use the (GetDirAlias) mnemonic to build the path. For CometAnywhere clients the path must either be one that is local to the CometAnywhere host or one that is served by the Comet File Server. Use with a path that is local to a CometAnywhere client is not supported.

Note: Do not confuse the (Document) mnemonic's use with that of (SpoolMessage). They serve two different purposes and may both be used on the same document. While the (Document) mnemonic is used to copy the document to any CFAM directory or windows path, the (SpoolMessage) mnemonic is used to name the document stored in a configured Archive.

Example:
OPEN(1) "LPH"
PRINT(1) (DOCUMENT="Sales Report","RPT")
PRINT(1) (DOCUMENT="\\MyServer\archive\Sales Report 05-14-08.htm","")

Notes: