Dear programmers
I've tested how the printing of a .PDF-file using Acrobat Reader is possible (problem see posts http://www.pdfforge.org/forum/help/4584-ps-files-closing-program-after-prining). If the PDFCreator detects Acrobat Reader it has to start the reader without any parameters. For the function "cPrintFile" it needs two parameters ("/N" and "/T").
The sequence should be like:
a) Start AcroRd32.exe without anything
b) Print using ShellExecuteEx with the parameters /N /T
This will close Acrobat 8.x / 9.x after printing and the function "WaitForASingleObject()" will return after printing so that PDFCreator can continue (otherwise PDFCreator will wait until Acrobat Reader will be closed manually).
Kind regards
Rolf (aka spieler67)