How to print in jasper directly?

How can I print directly to printer using jasper reports and grails?

  • Can someone please help me. I'm using grails and jasper grails plugin. I would like to send a jasper report directly to the printer from a click on my webpage. Can someone please point me to the right direction?

  • Answer:

    There is no printing API in HTML5. You will always rely on the client's browser to do all printing. The best you can do is open a new browser window to display the report without any of your website's header/footer/nav/etc. Add a button with the the javascript: window.print(); to open up the OS/Browser specific print dialog for the user.

Neoryder at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.