Print Adobe PDF using VBA without created PDF opening
I am using VBA in Outlook 2016 Windows to print the current Email Message using Adobe PDF to a create a PDF document. The PDF automatically opens after being created. I want to avoid the opening of the PDF. When creating the PDF manually, I can prevent the document from opening by un-selecting "View Adobe PDF results". From Adobe web site, https://www.adobe.com/devnet-docs/acrobatetk/tools/Wizard/WizardDC/pdfprinter.html it describes setting the SOFTWARE\Adobe\Acrobat Distiller\DC\ViewPrintOutput key to 0 to suppress opening the PDF after creating. I make the change, but the PDF continues to open. I have tried making the change both under HKLM and HKCU. Appreciate if anyone could help figure out how to avoid PDF document from opening.
