WP object model


The WordProcessor (WP) applet instantiates the WordProcessor class. The WordProcessor class provides methods and properties that allow you to create, populate, search, and merge documents. In addition, the WordProcessor class contains the CommandObject class, which provides a lower-level interface to core WP functions through the methods it exposes.

Code to instantiate the WordProcessor class looks like this:

<HTML>
<HEAD>
<TITLE>WP example</TITLE>
<BODY>
<APPLET NAME="MyWP" CODE="lotus.wp.WordProcessor"
   CODEBASE="..\.."
   WIDTH=500 HEIGHT=450>
</APPLET>
</BODY>
</HTML>
To obtain a reference to the current document's CommandObject in a JavaScript script, you call the WordProcessor method GetCommandObj as follows:
myCommandObject = MyWP.GetCommandObject()

See also
WP methods
WP PARAM tags