best practise to generate reports automatically
<p>Hello,</p>
<p> </p>
<p>this is the first time I use the forum and I hope someone could give me some "best practise" tips to the following topics:</p>
<p> </p>
<p><strong>1: save birt report directly on client filesystem</strong></p>
<p>I read that I can generate a report to the filesystem via birt runtime (genReport.bat). But I don`t want to use the birt runtime, cause I have to configure the birt runtime and additional the tomcat server, which I use for the viewer. Isn`t there a possibility to use the viewer to save a report as pdf directly on client filesystem? What is the best way to save a report as pdf on a client filesystem?</p>
<p> </p>
<p><strong>2: print birt report directly</strong></p>
<p>I try to use the viewer to print a report with the following link:</p>
<p><a data-ipb='nomediaparse' href='http://localhost:8081/ABISRep/frameset?__report=test.rptdesign&__format=pdf&__action=print&__printer=emuepr114'>http://localhost:8081/ABISRep/frameset?__report=test.rptdesign&__format=pdf&__action=print&__printer=emuepr114</a></p>
<p> </p>
<p>But I get the following error:</p>
<p>AxisFault</p>
<p>faultCode: PrintUtility.execPrint()</p>
<p>faultSubcode:</p>
<p>faultString: invalid flavor</p>
<p>faultActor:</p>
<p>faultNode:</p>
<p>faultDetail:</p>
<p>....</p>
<p> </p>
<p>I just get the same error if I don't use the parameter __printer. Any idea?</p>
<p> </p>
<p><strong>3:send report as an email attachment</strong></p>
<p>How does this work/what is the best way?</p>
<p> </p>
<p>Generally we need to generate reports and save them in the filesystem, print reports to different printers or send reports via email attachments to given timestamp (via service/cron).</p>
<p> </p>
<p>We use eclipse neon, tomcat 8.0.39 and birt 4,5 (cause of some Bugs in 4.6)</p>
<p> </p>
<p>I hope someone could give me some tips. Thanks!</p>
<p> </p>
<p> </p>
<p>this is the first time I use the forum and I hope someone could give me some "best practise" tips to the following topics:</p>
<p> </p>
<p><strong>1: save birt report directly on client filesystem</strong></p>
<p>I read that I can generate a report to the filesystem via birt runtime (genReport.bat). But I don`t want to use the birt runtime, cause I have to configure the birt runtime and additional the tomcat server, which I use for the viewer. Isn`t there a possibility to use the viewer to save a report as pdf directly on client filesystem? What is the best way to save a report as pdf on a client filesystem?</p>
<p> </p>
<p><strong>2: print birt report directly</strong></p>
<p>I try to use the viewer to print a report with the following link:</p>
<p><a data-ipb='nomediaparse' href='http://localhost:8081/ABISRep/frameset?__report=test.rptdesign&__format=pdf&__action=print&__printer=emuepr114'>http://localhost:8081/ABISRep/frameset?__report=test.rptdesign&__format=pdf&__action=print&__printer=emuepr114</a></p>
<p> </p>
<p>But I get the following error:</p>
<p>AxisFault</p>
<p>faultCode: PrintUtility.execPrint()</p>
<p>faultSubcode:</p>
<p>faultString: invalid flavor</p>
<p>faultActor:</p>
<p>faultNode:</p>
<p>faultDetail:</p>
<p>....</p>
<p> </p>
<p>I just get the same error if I don't use the parameter __printer. Any idea?</p>
<p> </p>
<p><strong>3:send report as an email attachment</strong></p>
<p>How does this work/what is the best way?</p>
<p> </p>
<p>Generally we need to generate reports and save them in the filesystem, print reports to different printers or send reports via email attachments to given timestamp (via service/cron).</p>
<p> </p>
<p>We use eclipse neon, tomcat 8.0.39 and birt 4,5 (cause of some Bugs in 4.6)</p>
<p> </p>
<p>I hope someone could give me some tips. Thanks!</p>
<p> </p>
0
Comments
-
<p><em><strong>1: save birt report directly on client filesystem</strong></em></p>
<p> </p>
<p>Because you have deployed the Web Viewer with Tomcat, you can give them a link to the report and use the __format=pdf URL parameter option.</p>
<p> </p>
<p>You can read more about the Viewer parameters here:</p>
<p><a data-ipb='nomediaparse' href='http://www.eclipse.org/birt/documentation/integrating/viewer-usage.php'>http://www.eclipse.org/birt/documentation/integrating/viewer-usage.php</a></p>
<p> </p>
<p>To deploy BIRT 4.6.0 on Tomcat, there is a workaround when using the non-OSGI version.</p>
<p> </p>
<p style="margin-left:40px;">1. Stop Tomcat, if it's running.</p>
<p style="margin-left:40px;"> </p>
<p style="margin-left:40px;">2. In the <strong>org.eclipse.birt.runtime_4.6.0-20160607.jar</strong> file located under the /birt/WEB-INF/lib directory, delete the files from the <em>META-INF</em> folder within the archive:</p>
<p style="margin-left:40px;">ECLIPSE_.RSA<br>
ECLIPSE_.SF<br>
</p>
<p style="margin-left:40px;">3. Restart Tomcat. </p>
<p> </p>
<p>However, you might want to consider using the OSGI version if you encounter any other issues:</p>
<p><a data-ipb='nomediaparse' href='http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-4.6.0-201606072112/birt-runtime-osgi-4.6.0-20160607.zip'>http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-4.6.0-201606072112/birt-runtime-osgi-4.6.0-20160607.zip</a></p>
<p> </p>
<p> </p>
<p><em><strong>2: print birt report directly</strong></em></p>
<p> </p>
<p>To test:</p>
<p> </p>
<p>From the Viewer, can you view the test.rptdesign, and then click on the last icon in the toolbar (Print report on the server)?</p>
<p> </p>
<p>It should issue a URL like this (hostname and context relative to your environment). You can try this directly too:</p>
<pre class="_prettyXprint _lang-">
http://localhost:8081/ABISRep/frameset?__report=test.rptdesign&__dpi=96&__format=postscript&__pageoverflow=0&__overwrite=false&__action=print
</pre>
<p><strong>3:send report as an email attachment</strong></p>
<p> </p>
<p>It's better if you use the Engine in an app instead of deploying to Tomcat if you want to do all the things you described. Also, have you considered commercial BIRT, iHub (<a data-ipb='nomediaparse' href='http://www.opentext.com/what-we-do/products/analytics/opentext-information-hub'>http://www.opentext.com/what-we-do/products/analytics/opentext-information-hub</a>) where scheduling, printing, emailing and much more are included so you don't need to write your own "server"?</p>
Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 144 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management