Java bean word processing
Would you like to load Microsoft® Word, to create a new document
and to serve bookmarks by your java application? There is a free java
for you here!
Just code this:
WordProcessing.typeTextAtBookmark("AddressLine1", "O'Reilly &
WordProcessing.typeTextAtBookmark("AddressLine2", "Mr Miller");
WordProcessing.typeTextAtBookmark("AddressLine3", "101 Moris Street");
WordProcessing.typeTextAtBookmark("AddressLine4", "Sebastopol, CA
WordProcessing.typeTextAtBookmark("Salutation", "Dear Mr Miller,");
|What’s that bean good for?
If users work e.g. on customer files they want to
them with the word processing they are used to. And that’s what this
There may be programmers who will object that this initiative
the platform independent intention. Let me argue:
- Individual letter: Implement the button “Letter”. The
a pre-edited document and begins to write his individual text.
- Standard letters: The user prepares a full edited
the address. After a selection of addresses to be contacted, word
is called to merge message and addresses. It is possible to use
distribution channels by selecting the output file (printer, fax right
now, e-mail maybe later (Microsoft seems to prevent spamming))
- Microsoft® Word is a de-facto standard which many don't want
- Anybody who offers an analogue control for other operating
be sure of a link from this site.
||Creates a new document based on the desired template.
||Triggers to the template selection dialog and creates a new
based on the chosen template.
||Decides whether the user shall be informed that the template
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
||Sets the document directory for future document saving.
||Saves the active document using the indicated name (usually
||Saves the active document using the indicated name and closes
||Closes the active document.
||Prints the document on the standard printer and closes the
||Triggers to the printer selection dialog, prints the document
selected printer and closes the document without saving.
||Prints the document on the specified printer and closes the
||Executes an arbitrary WordBasic macro.
||Quits the word processing application
||Starts the execution of the above instructions. (This
is particularly helpful at large numbers of standard letters.)
|More Download for Advanced Usage - Open Source!
For those who want to make use of our base work more largely: All
components are available as Open Source now! Sample application of the
framework is among others an address administration using the
class for writing single and standard letters based on an address
-> More information and download