Official Content

Deprecated: Since GeneXus 15.

Unify interaction functions with the generation of Microsoft Word documents for the different languages generated.


In order to use this feature, the WordDocument data type was created.  It allows you to generate Microsoft Word documents in two ways, Using Office or OpenOffice.

An important advantage that this implementation has over previous ones is that documents are handled with an object-oriented model and it is no longer necessary to control Handles.



Java Specific notes

The implemented feature consists of being able to generate Word documents interacting with OpenOffice instead of MSOffice (32 bit DLL implementation). The advantage is that, in addition to avoiding the need to have MSOffice installed in the server and use only a JRE 32 bit VM, OpenOffice has its server that listens to client orders, therefore it does not need to be in the same server where the application runs.

To use OpenOffice instead of MSOffice, you must do the following:

1. &WordDoc.UseMSOffice = 0 //&WordDoc is WordDocument Type:
In order to use this property, set the Standard functions property to "Allow non-standard functions".

2. You have to include the following jar files in the WEB-INF\lib directory of your application in Tomcat:

sandbox.jar (it's not necessary in OpenOffice 3 or higher)

They are under the OpenOffice installation, under program\classes folder.

3. Besides, the OpenOffice server must be operating. It is started as follows (using Command Prompt):

<OOffice_path\program> soffice -accept="socket,host=<ServerName>,port=8100;urp;StarOffice.ServiceManager"

More information...
SAC #18847


Languages: Java, Visual FoxPro (up to GeneXus X Evolution 3)

See Also

ExcelDocument Data Type

Generating Microsoft Excel and Word Documents

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant