Direct printed in Java

Asked

Viewed 619 times

2

I need to create a form to be printed on a thermal printer (not tax), in case I thought to create a printed by Jasperreports but Jasper searches the bank for the information and wanted to get the information directly from my system before sending to the database, so I think I save time in the process and save time on user having to record and then print. Is there anything I can rely on to create this form.

  • only to help you in this information search Jasper can search for information directly from the database but you can also pass to it from java a list of objects and parameters to fill in the report without having to connect to the database.

  • @Flavioandrade Would you have an example of some form in which I can mirror myself and create what I need? Just one more piece of information I can also remove the preview that Jasper opens when extracting a report, if yes how I can manipulate the printer I want to print?

  • Here an example how to pass a list of Java objects to Jasper. Make sure that’s what you need. Now remove the preview I can’t say, I never had to do it.

1 answer

0


I used another way to print, directly and without having to store the data in the database and then search them, and it is possible to pass parameters through a Hashmap.

For those who need information, look for the class java.awt.print.Printerjob that will be very useful.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.