WP methods
The WordProcessor (WP) applet exposes the following methods that a JavaScript script can
call at run time. With two exceptions (Load and newDocument), these methods apply to
WordProcessor objects. Load and newDocument apply to CommandObject objects.
To insert, retrieve, or remove a document's contents
GetCommandObject method
getHTMLText method
getText method
Load method
newDocument method
setHTMLText method
setText method
To merge data from an external source into document fields
StartMerge method
MergeNext method