<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Genereate Word Document with dynamic content</title><link>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content</link><description>&lt;p&gt;How can I generate a Word Document with ivy?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 12 May 2017 08:22:03 -0400</lastBuildDate><item><title>Comment by Reguel Wermelinger on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content#2625</link><description>&lt;p&gt;The expression evaluation takes all data which is available on the process variable (in) and expands it's value as string.&lt;/p&gt;
&lt;p&gt;From a JSF dialog you can send a redirect to another process, that will send the file stream:
&lt;img alt="rtf redirect" src="http://answers.axonivy.com/upfiles/openRtLinkFromJsfDialog.png"&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 12 May 2017 08:22:03 -0400</pubDate><guid>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content#2625</guid></item><item><title>Comment by Oliver on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content#2624</link><description>&lt;p&gt;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)?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Oliver</dc:creator><pubDate>Fri, 12 May 2017 07:46:35 -0400</pubDate><guid>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content#2624</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content/1176</link><description>&lt;p&gt;There are many ways to generate a Word document with the ivy ecosystem:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. RTF Document generation with WebPages&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;RTF Document generation with WebPages removed in Axon Ivy 9.3!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;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. &lt;/p&gt;
&lt;p&gt;&lt;img alt="rtf process screenshot" src="https://answers.axonivy.com/upfiles/dynamicRtfDocumentWithWebPage.png"&gt;
[rtfPageDemo_51.iar]&lt;a href="/upfiles/rtfPageDemo_51.iar"&gt;2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Office Document generation with Aspose&lt;/strong&gt;
Aspose lets you programatically create office documents. A licensed version is packed with ivyAddOns. The RichDialogDemos project which is shipped with the Designer &lt;code&gt;[designer]/applications/samples/RichDialogDemos&lt;/code&gt; shows a usage example. The relevant Demo is called "Document Factory"
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/asposeLetterGenerator.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. PDF/DOC/HTML generation with BIRT&lt;/strong&gt;
A community extension allows generation of documents with &lt;a href="http://www.eclipse.org/birt/"&gt;BIRT&lt;/a&gt;. The extension as well as the reporting technology is open source. The project is hosted on &lt;a href="https://github.com/ivy-supplements/birt-reporting"&gt;github&lt;/a&gt;.
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/processEditorWithBirtExtension.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Office Document generation with Apache POI&lt;/strong&gt;
An open source library to read and create office documents: &lt;a href="http://poi.apache.org/"&gt;POI Project website&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;5. JSF Datatable export with Primefaces&lt;/strong&gt;
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.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.primefaces.org/showcase/ui/data/dataexporter/basic.xhtml"&gt;Primefaces Data Exporter Showcase&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What is your experience with Word Document generation in ivy? ratings of these methods, field reports or demo projects are welcome!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 24 Feb 2015 10:08:41 -0500</pubDate><guid>https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content/1176</guid></item></channel></rss>