Skip to content
Angelo edited this page Feb 23, 2017 · 8 revisions

ODT Design Report

XDocReport give you the capability to create report with OppeOffice ODT. Fields to replace must follow Freemarker/Velocity syntax. Typing directly field name can work, but you can have trouble if you style the field. So it is advisable to use InputField to set fields to replace.

To add InputField in your ODT report you can :

To manage Dynamic Image in your ODT report you must :

  • insert a "template" image (any image).
  • set a name for the image.

For the "template" image you can for instance use this image :

Create Field with OppenOffice

This section explains how to add Field $project.Name after Project: content. Here steps to add this Field :

  • Do Ctrl+F2 after Project: content or go at Insert / Fields / Other.. menu :

  • this action opens Fields dialog. Click on the Functions (Fonctions) tab and select Input field (Champs de saisie) :

  • click on Insert (Insérer) button to open Input Field dialog, and type in the textarea the field name $project.Name :

  • click on OK, field is added to your document :

  • Now you can style it if you wish. To do that, select the whole field :

  • Style it as you wish :

Manage Dynamic Image

This section explains how to add Dynamic Image $logo in a ODT document. Here steps to add this dynamic image :

  • go to the menu Insert/Image/File... (Insertion/Image/A partir d'un fichier...) :

  • this action opens the dialog to select an image. In this screenshot, is selected :

  • after clicking on Open button, image is inserted in the document :

Now you must name the image. To do that, select the image, click on right button and select Image... menu item :

  • this action opens the Image dialog box. Go to the Options tab and fill the field name with logo value:

Click on OK button. Dynamic image is now available with logo name.

Clone this wiki locally