views:

357

answers:

2

Hi,

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?

+1  A: 

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
A: 

It seems you can print jasper reports using the same ways they are printed in java applications.

Neoryder
Can you please give examples/links?
Scott Warren
Yeah, really. Nothing like marking your own incorrect solution as the answer. Good job.
Mike