简体   繁体   中英

Silent Print jasper Report

I am going to create a jasper report. It's either in PDFs or HTML. It saves on the server, so I'm putting this PDFs file in an i frame. Then I'm going to print this i frame content. When I try to print it, it shows a print preview in Chrome. So my requirement is to only print the file. I don't want to show print preview(which is a Chrome feature to show print preview). I want to only select the printer and make it print. I mean silently print. I have been stuck for a couple of days. I mean bypass the print preview. Is there any way to solve the issues?

You can run Chrome in kiosk mode and add a parameter to stop it from showing the print preview dialogue.

chrome.exe --kiosk --kiosk-printing

This page explains it in an easy way: http://www.sitepoint.com/google-chrome-kiosk-mode/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM