Printing a document with QR Code

Ask your Windows PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
rocky.pabillore
Posts: 13
Joined: Thu Aug 25, 2016 7:05 am

Printing a document with QR Code

Post by rocky.pabillore » Fri Aug 03, 2018 9:03 am

Hey guys,

currently an intern left with a very half/baked gui to print out documents with qr code.
He's using the word api for this and it is very very buggy, and sometimes it would not print to the right printer.

jvierra posted this on the vbsscripts forum: Set pd = CreateObject("MSComDlg.CommonDialog.1")
pd.PrinterDefault = Truepd.ShowPrinter

I really just want to know a way to select the document, and open it up with the printerdialog to print. I tried to do this with IE .net but i know IE will be gone soon. anyone please help?

User avatar
jvierra
Posts: 13681
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Printing a document with QR Code

Post by jvierra » Fri Aug 03, 2018 9:16 am

THe print dialog no longer exists.

What kind or documents are qr documents.

Start-Process document.qr -Verb Print

Locked