How can I generate a Word Document with ivy?

asked 24.02.2015 at 10:06

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.1k1829
accept rate: 69%

edited 17.10.2016 at 11:07


There are many ways to generate a Word document with the ivy ecosystem:

1. RTF Document generation with WebPages

WebPage elements in your Process can be linked with an RTF document that is stored in the webContent folder. This document can be easily designed with MS Word or any office tool you like and must be stored in *.RTF format. This document can contain ivy macro expressions (JSP like). The expressions will be evaluated at runtime and can for instance display your process data in a serial letter.

rtf process screenshot [rtfPageDemo_51.iar]2

2. Office Document generation with Aspose Aspose lets you programatically create office documents. A licensed version is packed with ivyAddOns. The RichDialogDemos project which is shipped with the Designer [designer]/applications/samples/RichDialogDemos shows a usage example. The relevant Demo is called "Document Factory" alt text

3. PDF/DOC/HTML generation with BIRT A community extension allows generation of documents with BIRT. The extension as well as the reporting technology is open source. The project is hosted on github. alt text

4. Office Document generation with Apache POI An open source library to read and create office documents: POI Project website.

5. JSF Datatable export with Primefaces Datatables in Html Dialogs can be exported to Word,PDF or Excel Documents with the Primefaces DataExporter. Apache POI is working behind the scene to do that job.

Primefaces Data Exporter Showcase

What is your experience with Word Document generation in ivy? ratings of these methods, field reports or demo projects are welcome!

link
This answer is marked "community wiki".

answered 24.02.2015 at 10:08

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
5.1k1829
accept rate: 69%

edited 03.03 at 15:56

admin's gravatar image

admin ♦♦
1124

How does the expression evaluation during runtime (first example) work? How can I provide the output file as download in JSF / Primefaces (p:fileDownload - StreamedContent)?

(12.05 at 07:46) Oliver Oliver's gravatar image

The expression evaluation takes all data which is available on the process variable (in) and expands it's value as string.

From a JSF dialog you can send a redirect to another process, that will send the file stream: rtf redirect

(12.05 at 08:22) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×43
×11
×5
×4
×1

Asked: 24.02.2015 at 10:06

Seen: 1,714 times

Last updated: 12.05 at 08:26