Word Plug-in
 As of version 3.0 (currently only available for Servoy 4.0) the Word Plug-in makes it possible to create a MS Word® document without the need to have MS Word® installed.
The Word Plug-in functions under any os, supported by Servoy.
Because there is no need to have MS Word® installed it is also possible to generate a document from a web client and headless client!.

The Word Plug-in supports features like document creation, content manipulation and mail merge abilities.
Content manipulation is done, amongst others, by moving to bookmarks and inserting text, images, fonts and other formatting.
It is also possible to insert data bookmark per bookmark or by inserting a dataset, foundset or record.

A document can be saved (and read) as:
The document format can be chosen by adding the correct extension or save format.

The included sample solution shows you the how you can create a new blank document or a document based on an existing document (included).

Some of the available methods in the Document object are:
  • Document.replaceBookmark - Replace the bookmark with the entered text (or array of textlines)
  • Document.replaceBookmarks - Replace the bookmarks with the columnnames and row values (arrays), dataset, foundset or record
  • Document.gotoStart - Go to the beginning of the MS Word document
  • Document.totEnd - Go to the end of the MS Word document
  • Document.gotoBookmark - Go to the bookmark by name
  • Document.insertDocument - Insert a (MS Word) document at the selected position
  • Document.insertPagebreak - Insert a pagebreak at the selected position
  • Document.insertImage - Insert an image at the selected position
  • Document.insertText - Insert the entered text (or array of textlines) at the selected position
Some of the available properties in the Document object are:
  • Document.font - Set the font (family, style and size)
  • Document.fontColor - Set a new font color

Latest Servoy 4+/5+ (Eclipse) release available   3.0.33 01/29/2010
Latest Servoy 3 Classic release available 2.5-024 08/17/2009
 

Useful links