RunDocument
creates, opens, or deletes a document that accesses a shared library already running in the CommonPoint application system workspace.
Syntax
RunDocument [-c Class SharedLib | -o [-s Mode ] [ -p Way ] | -d ] [ DocumentName ]
Arguments | -c Class SharedLib |
Creates a new document from the TAbstractDocumentStationery subclass Class, which is defined in the shared library SharedLib. Can be combined with -o to open and create at the same time. If the class name contains punctuation characters, such as "<" or ">", enclose Class in single quotes.
|
-d | Deletes DocumentName. | |
-o |
Opens DocumentName. Can be combined with -c to open and create at the same time.
|
|
-p Way |
Specifies the task in which to open the document. Way can be:
0 = open in same task (default). 1 = open in a new task. |
|
-s Mode |
Specifies the mode in which to open the document. Mode can be:
0 = examine store (default). 1 = assume this is a basic document. 2 = assume this is a compound document. |
|
DocumentName |
The document created, opened, or deleted. If you omit DocumentName, use "Untitled" as the default. If the document already exists, RunDocument appends an integer <n> to the name, where <n> is 2 or greater such that the name is unique, such as Untitled2
|
Usage
RunDocument
prints, to stdout
, one of these status codes:
0 | No error. |
1 | Syntax error in arguments. |
2 | Stationary class not found. |
3 | Document not found. |
4 | Could not delete document. |
5 | Could not open document. |
6 | Could not determine document store type. |
Create and open a shared library named
Example
SpecialLib
that is of the class TGUIViewStationaryFor<TColorDocumentView>, and name the new document ToolsStar
.
RunDocument -c -o 'TGUIViewStationaryFor<TColorDocumentView>' SpecialLib ToolsStar
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.