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?
Asked
Active
Viewed 2,711 times
4
-
In case of using reports in `pdf` format the problem can be solved like in this [post](http://stackoverflow.com/questions/8733276/how-to-open-print-dialog-after-pdf-generated) – Alex K Feb 06 '12 at 15:32
1 Answers
2
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.

Mike
- 8,853
- 3
- 35
- 44