<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Error of using p:dataExporter in Ivy 5</title><link>https://answers.axonivy.com/questions/983/error-of-using-p-dataexporter-in-ivy-5</link><description>&lt;p&gt;Hello everybody,&lt;/p&gt;
&lt;p&gt;I have just created a Hello word project by Axon.ivy Designer Version: 5.1.0.
In this project, I used dataExporter of primeface for export data from table to excel, pdf, cvs file.&lt;/p&gt;
&lt;p&gt;However, There were some errors occurred when I tried to export Excel and Pdf. These are error messages I got from log file:&lt;/p&gt;
&lt;p&gt;For excel: ClassNotFoundException: org.apache.poi.ss.usermodel.RichTextString &lt;/p&gt;
&lt;p&gt;For Pdf: ClassNotFoundException: com.lowagie.text.Phrase&lt;/p&gt;
&lt;p&gt;It worked fine with csv only&lt;/p&gt;
&lt;p&gt;I try to copy itext-2.1.7.jar to lib folder of project. but it did not help.&lt;/p&gt;
&lt;p&gt;Could you help me to clarify it.&lt;/p&gt;
&lt;p&gt;Thank in advance.&lt;/p&gt;
&lt;p&gt;Huy&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/983/error-of-using-p-dataexporter-in-ivy-5" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 02 Oct 2014 12:40:56 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/983/error-of-using-p-dataexporter-in-ivy-5/984</link><description>&lt;h1&gt;&lt;strong&gt;Axon Ivy 7.4 and newer&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;The apache libraries &lt;strong&gt;poi&lt;/strong&gt; and &lt;strong&gt;poi-ooxml&lt;/strong&gt; are from version 7.4 and onward included in the ivy classpath. This enables the export of excels with primeface's dataExporter. If you want to export pdfs you still have to add the &lt;strong&gt;itext&lt;/strong&gt; library manually as described down below.&lt;/p&gt;
&lt;h1&gt;&lt;strong&gt;Pre version 7.4&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;The &lt;em&gt;p:dataExporter&lt;/em&gt; uses third party plugins to generate Pdf or Excel files. These third parties must be manually added to the classpath (of the webapp classloader) and are not packed with the primefaces.jars...&lt;/p&gt;
&lt;p&gt;So in the case of Excel you need to add &lt;strong&gt;org.apache.poi&lt;/strong&gt; to your classpath. You can download it from the &lt;a href="http://poi.apache.org/download.html#POI-3.10.1"&gt;official website&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;After that it put into the directory "Designer root"/webapps/ivy/WEB-INF/lib/ (and restart Designer).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Thu, 02 Oct 2014 12:40:56 -0400</pubDate><guid>https://answers.axonivy.com/questions/983/error-of-using-p-dataexporter-in-ivy-5/984</guid></item></channel></rss>