开发者

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 clic开发者_如何学Gok on my webpage. Can someone please point me to the right direction?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜