NEW RELEASE! The 2022x Refresh2 Hot Fix 3 was released on February 28, 2025. For more information, see 2022x Refresh2 Hot Fix 3 Version News.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Creating a template for a Rich Text Format or OpenDocument Text document, or Microsoft Word Document (DOCX)

You can create a document in .rtf, .odt, or .docx file format and add it to MagicDraw as a report template.

How to create a template for a Rich Text Format or OpenDocument Text document, or Microsoft Word Document (DOCX)

  1. Open OpenOffice.org Writer or Microsoft Word for an *.odt, *.rtf, or *.docx file. (To save a file as an *.odt file in Microsoft Word, an add-on is required. You can get the add-on at http://odf-converter.sourceforge.net/.)
  2. Add the Velocity Template Language codes to the template file.
  3. Save the template file.
  4. Add the template to MagicDraw.

When generating a document, Report Wizard will apply the text format used in writing the Velocity code.

For instance, when typing:

 

 the generated output will be:

 

Glossary

 

Velocity is a Java-based template engine. It permits anyone to use a simple, yet powerful, template language to reference objects defined in Java code. Velocity is a project of the Apache Software Foundation, charged with the creation and maintenance of open-source software related to the Apache Velocity Engine. All software created at the Velocity project is available under the Apache Software License and free of charge for the public.

 

$body

Activity

All
Personal filters
All
No activities found