JabbaTheNut
Programmer
I have used ShellExecute successfully for printing "one-off" .PDF files. However, I now have a situation in which I need to print several .PDFs in a specific order. When I use ShellExecute, the .PDFs print when ready and not necessarily in the order I specify (ShellExecute is asynchronous). I know that the CreateProcess API coupled with the WaitForSingleObject API will do the trick for me. My problem, however, is with the command line input required by the CreateProcess API. I don't know the proper syntax for printing a .PDF document from the command line. Does anyone know the proper syntax (i.e. PRINT C:\MYFile.PDF)? Game Over, Man!