user237462
user237462

Reputation: 421

Populating a PDF with Java Form

Ive searched through similar answers but not quite getting a complete answer so need to explain here.

What i have is a JFrame form that an Employee in a manufacturing plant needs to fill in everytime something goes wrong with the production process.

What i want is for a user to click a "Print Report" JButton on the JFrame form and it will populate the following PDF Report with the info from the JFrame.

JFrame form

enter image description here

PDF Report

enter image description here

Upvotes: 0

Views: 179

Answers (3)

user237462
user237462

Reputation: 421

I ended up using Jasper Studio. It does the job perfectly. Has a bit of a learning curve but works 100%.

You can just send the report an SQL Query rather than all the parameters to create a dynamic Report.

https://community.jaspersoft.com/project/jaspersoft-studio/releases

Upvotes: 0

Olantobi
Olantobi

Reputation: 879

JasperReports is also a good alternative. I've been using it for a while now and it works perfectly for generating/exporting dynamic reports. You only need to design the template once using iReports and you can use it to generate any PDF on the fly.

Upvotes: 0

Juan Camilo Mejia
Juan Camilo Mejia

Reputation: 1012

I use this library http://itextpdf.com/, you will spend some time programing the form, but then all will be really fast.

Upvotes: 1

Related Questions