createNewDocumentFromTemplate(String templateName) |
Creates a new document based on the desired template. |
createNewDocumentFromTemplateToSelectByUser() |
Triggers to the template selection dialog and creates a new
document
based on the chosen template. |
setNoteNotMatchingBookmarks(boolean noteNotMatchingBookmarks) |
Decides whether the user shall be informed that the template
didn't
include certain bookmarks. |
typeTextAtBookmark(String bookmark, String textToType) |
Goes to the specified bookmark and types the desired text. |
typeTextAtBookmark(String bookmark, String[] linesToType) |
Goes to the specified bookmark and types the desired lines
with line
feed. |
changeDocumentDirectory(String documentDirectory) |
Sets the document directory for future document saving. |
saveDocumentAs(String documentName) |
Saves the active document using the indicated name (usually
without
extension). |
saveDocumentAsAndClose(String documentName) |
Saves the active document using the indicated name and closes
it. |
closeDocument() |
Closes the active document. |
printAndForget() |
Prints the document on the standard printer and closes the
document
without saving. |
printToPrinterToSelectByUserAndForget() |
Triggers to the printer selection dialog, prints the document
on the
selected printer and closes the document without saving. |
printAndForget(String printerName) |
Prints the document on the specified printer and closes the
document
without saving. |
executeMacro(String macroName) |
Executes an arbitrary WordBasic macro. |
quitApplication() |
Quits the word processing application |
exec() |
Starts the execution of the above instructions. (This
stacking
is particularly helpful at large numbers of standard letters.) |