顯示具有 browser 標籤的文章。 顯示所有文章
顯示具有 browser 標籤的文章。 顯示所有文章

2019年12月19日 星期四

設定瀏覽器直接列印到預設印表機

分為 Google Chrome 和 Firefox 二種不同的處理方式。

Google Chrome Kisok Print 模式:
  1. 先關閉 chrome ,連背景執行的也要關閉。
  2. 在 chrome 圖示按「右鍵 / 內容」。
  3. 在執行程式部份,輸入為「 chrome  --kiosk-printing 」,就可以做到預設列印的動作。
  4. 附註,若輸入為「 chrome --kiosk 」,則 chrome 執行時就會以全螢幕方式執行。

Firefox Silent 模式:
  1. 開啟 firefox 後,在網址列輸入「 about:config 」。
  2. 按 確認 。
  3. 若是較舊版本,在內容區按「右鍵 / New / Boolean 」,輸入「 print.always_print_silent 」,將值設定為 True 即可。
    若是較新版本,直接在上方的篩選裡輸入「 print.always_print_silent 」 ,系統預設是 Boolean ,而且預設為 True,直接按右方的 「 + 」即可。
以上動作,就完成這二個模式的設定。

參考來源: https://oncyclo.com/support/knowledgebase/251/Silent-or-Kisok-Printing.html

2017年12月2日 星期六

瀏覽器直接列印的設定



firefox

from: https://stackoverflow.com/questions/945691/automatically-print-image-from-website

The only solution to avoid print dialog that I found was creating a variable on Mozilla Firefox to set auto-print. Maybe is not the best solution if you need to use other browser, but in my case, I only need to print a report automatically and it works:
1- Open Firefox and type "about:config" in the address bar
2- Right click on any preference and select "New" > "Boolean"
3- Add a variable called "print.always_print_silent" with "true" value
4- Restart Firefox.

Google Chrome

--kiosk 的動作,我目前試不出來,猜想應該是新版本不支援了。