Problem:
I wan't to print a pdf-Document from an VB Application via the Shell-Command (Shell "acrord32.exe /p doc.pdf". This works fine, but if the Reader has the print-dialog open before I start the printing nothing happens (no error, no print). What can I do? Is it possible to check, in which state the Reader is?
PS: If I use the DLL-functions
i = CreateProcessA( 0&, RunProg, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, StartInf, proc )
i = WaitForSingleObject( proc.hProcess, INFINITE )
i = CloseHandle( proc.hProcess )
VB never ends (even if I close the Reader)
Thanks for helping!
I wan't to print a pdf-Document from an VB Application via the Shell-Command (Shell "acrord32.exe /p doc.pdf". This works fine, but if the Reader has the print-dialog open before I start the printing nothing happens (no error, no print). What can I do? Is it possible to check, in which state the Reader is?
PS: If I use the DLL-functions
i = CreateProcessA( 0&, RunProg, 0&, 0&, 1&, NORMAL_PRIORITY_CLASS, 0&, 0&, StartInf, proc )
i = WaitForSingleObject( proc.hProcess, INFINITE )
i = CloseHandle( proc.hProcess )
VB never ends (even if I close the Reader)
Thanks for helping!