How to print jasper-reports directly from Client machine

asked 2017-11-06 21:58:15 +0800

mangaldaslima gravatar image mangaldaslima
11 2

updated 2017-11-06 21:58:52 +0800

My requirement is to print a report directly at client side printer.

I have followed below mentioned approaches :

  1. I used PrintServiceLookup.lookupDefaultPrintService() for printing; but lookupDefaultPrintService() method gives me the printers of server not the client.I need to find client-side default printer so that I could print from that.

  2. I have tried using zk print utility. It is working fine for windows environment; but for linux, it's showing a client side error "the source code of a script was found within the request. The server sent an 'X-XSS-Protection' header requesting this behavior."

Is there any way to do this using JavaScript or Java?

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2017-11-06 21:58:15 +0800

Seen: 7 times

Last updated: Nov 06 '17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More