I have a new process that prints several hundred documents via a batch, but I don’t want the dialog to pop up every time it starts a new file. This is really annoying as I might be typing in another window and the “Printing” dialog pops up as I’m hitting the spacebar and it thinks I want to cancel printing the document.
You can get around this by making a dummy print controller.
‘This was already declared earlier in the process
MyDocument = New PrintDocument()
Dim dlgPrintingDialog As New StandardPrintController
MyDocument.PrintController = dlbPrintingDialog
That’s it – now you can print and you won’t see a pop-up.