Friday, October 15, 2021

Microsoft Edge Kiosk Update Kills Printing with UseSystemPrintDialog registry enabled

I found an interesting issue that happened on Microsoft Edge version 94.  Vend is setup as a cash register on a touch screen windows 10 machine, and is running in Kiosk mode, when all of a sudden printing stopped working.  Now to make edge waste as little paper as possible all margins, were disabled and to skip the page setup option that is enabled in chrome based browsers.  The issue with chrome is if you skip the page setup you end up printing the header and footer wasting a good 4 inches of paper tape, when you open the cash drawer.  Edge was able to bypass this using Kiosk mode and the following registry key.

It is located Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge

The registry key to bypass the print preview in edge kiosk mode is 

UseSystemPrintDialog  which is a dword 32bit and has a value of 1 or 0.  To do the page setup bypass the value was set to zero but since edge version 94, having the value set to 0 crashes edge printing.

https://support.vendhq.com/hc/en-us/articles/201378390-Enable-kiosk-silent-printing-for-Google-Chrome-on-Windows-Video-





With the edge updates you get the following error when you try to print a receipt or open the cash drawer with UseSystemPrintDialog enabled.







Disabling the registry key allows the printing to continue to but is a two step process where the print preview is shown.

Unfortunately, I haven't been able to fix the issue in edge in kiosk mode so I had to switch to chrome.  Using the kiosk flag, It does print without the print preview showing up but when you go to open the drawer it now prints about 4 inches and displays the header and footer, which using edge resolved.

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk https://stalbertpubliclibrary.vendhq.com/signin/ --kiosk-printing --enable-print-preview

I've also tried the @page{margin:0px, auto;} to get rid of the header but that has not worked out.

For edge a I have a similar setup as chrome.  I hope the fix for this comes soon.  In the meantime the register will have to be using chrome for now.

Below is the browser setup for edge kiosk.

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --kiosk https://stalbertpubliclibrary.vendhq.com/signin/ --edge-kiosk-type=fullscreen --kiosk-printing

For more information on the changes to Edge's kiosk mode you can find that at 


How to fix CURL call imporitng an RSS feed on a site blocking CURL calls

There is a 3rd party service provider that my organization uses called bibliocommons.  They have these nice book carousels.  However the car...