sending CTRL-Q to the acrobat window after a while if no acrobat window was active before (they load in the same instance)>Thanks Gregory!
>>FileName = '\tmp\test.pdf' >>PrinterName = getprinter() >> >>?ShellExecute(0, 'printto', FileName, '"'+PrinterName+'"', 0, 0) >>________________________________________________________________ >>The Printto command looks something like >> >>"C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /t "%1" "%2" "%3" "%4" >> >>&& %1 : FileName >>&& %2 : PrinterName >>&& %3 : PrinterDriver >>&& %4 : PrinterPort >> >>We're using the first two params >> >>ps : enclose all parameters in double quotes >> >>>>You can find the printto command with regedit