Print Report directly on JasperReports Server

怎甘沉沦 提交于 2019-12-11 02:24:56

问题


I got some problems with JasperReports Server. I need to print report directly on the server.
I view report first and then just click on the print it will open Printer Dialog. After choose printer I can print report as well. Any ideas?


回答1:


I just got this solution. I use javascript code. But I don't know it's the best solution or not. If have any other solutions please help me out. This is the code:

var url=document.location.href+'&output=pdf';
var printWindow=window.open(url,'_blank'); 
printWindow.print();


来源:https://stackoverflow.com/questions/18887689/print-report-directly-on-jasperreports-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!