Home
Analytics
how to save BIRT generated PDF files in the database automatically?
yaragallamurali
<p style="font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">My programming language is java. My application is a web based application. I am using BIRT for generating pdf reports but the requirement is to automatically save them to the database after viewing the pdf report. In BIRT the pdf document is generated on the fly from the rpt templates. When user clicks on a URL the pdf document is displayed by the BIRT viewer application.</p>
<p style="font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">The requirement is once the pdf is generated i need to save a copy of the pdf file in the MySql database. This should happen automatically. once the user views the pdf (when the pdf is generated on the fly) the copy of the pdf file should get saved in the database.</p>
<p style="font-size:15px;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;">Please let me know, how i can achieve this?</p>
Find more posts tagged with
Comments
JFreeman
<p>What I think is going to be the best option is to use the Report Engine API to run the report after or at the same time as send the report to the web viewer. That will allow you to generate the PDF output dynamically along with the sending it to the web viewer. You can then take the produced PDF output and add it to your database per your requirements with java in the same application.</p>