Inconsistent behavior of ShellExecute in printing pdf and htm files, using VB6
Posted on 2004-04-15
I use the following to print documents from a VB6 app runing on Windows XP.
ShellExecute hwnd, "PRINT", myPath2File, vbNullString, vbNullString, 0
If the document is .pdf, the printing is initiated, which is what I want.
If the document is .htm, the printers dialog box opens, which is not what I want.
Is there a way to avoid the printers dialog box, please?