设置默认打印机后调用如下方法打印还是会出现预览页面,静默打印未生效,浏览器是使用chrome function doPrint(){ debugger; var url="http://localhost:8888/WebReport/ReportServer?reportlet="; url+=document.report.cpt.value; var isPopUp = false; var config = { url: url, isPopUp: isPopUp } alert(url); //FR.doURLPDFPrint(\"/WebReport/ReportServer?reportlet=report.cpt\", true); FR.doURLPDFPrint(url,false); } 编辑于 2017-12-8 14:36 |