Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Silent Printing Applet

 
Jorge Montes
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using JEE5 and Jasper Reports. There is a report that is exported to pdf. It was working fine but my client want that the report be printed only once and cannot be saved locally. I was doing some research trying to approach this problem, and i saw the Javascript Adobe for pdf documents. So i actually make the pdf be printed without the user interfering (Silent Printing). But i could not make the pdf closes.

So, Adobe Javascript was not totally useful for me. Now i am thinking that an applet will be the answer but I've never done anything like it, in fact, i've never done an applet before. Some partners told me that an applet could be the solution but i do not really know what i am getting into if i try.

Do you thing that an applet is a good idea? what am I getting into? should the applet be signed for that kind of operations?

Thanks in Advance
 
Jorge Montes
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i tried with the applet and all my questions were answered while i was coding it.

It was possible to make a printing job with the applet so i could make the silent printing. I used the java.awt.print package but, of course, the applet was using external devices, so it needs to be signed.

The other problem was getting the PDF file. I could not get the pdf from JSF. So, i made a Servlet that responses the pdf file to the applet.

it was actually kind of easy to make. If you have this problem i recomend you to make an Java Applet

Thank you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic