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
Related Q & A:
- How can I print a big image on 4 sheets A4?Best solution by Yahoo! Answers
- How can I print off coupons from the net?Best solution by Yahoo! Answers
- How can I print index cards?Best solution by Yahoo! Answers
- How can I print wirelessly from a laptop to a printer without a router?Best solution by answers.yahoo.com
- How can I record directly from a keyboard onto a computer?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.