|
|
existierendes PDF Dokument per Programm drucken- #24190 in section [743227] |
Sec: |
(1) Allgemeines |
Von: |
S.Schabbach |
An: |
Harro Schippan |
Am/Um: |
27.07.2021 12:06:29 gelesen |
_PDFexe = "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" _PDFfile = "C:\mbpLocal\mbp-mahnung.pdf" _PDFprinter = "PDF24" _PDFparam = [/n /s /h /t ] + ["] + _PDFfile + [" "] + _PDFprinter + ["] *!* /n - Launch a new instance of Reader even if one is already open *!* /s - Don't show the splash screen *!* /o - Don't show the open file dialog *!* /h - Open as a minimized window *!* /p - Open and go straight to the print dialog *!* /t - Print the file the specified printer. DECLARE INTEGER ShellExecute ; IN SHELL32.DLL ; INTEGER nWinHandle,; STRING cOperation,; STRING cFileName,; STRING cParameters,; STRING cDirectory,; INTEGER nShowWindow && max lcWorkDir = JUSTPATH( _PDFfile ) lnShowWindow = 1 _ShellExecuteResult = ShellExecute(0, "open" , _PDFexe , _PDFparam , lcWorkDir , lnShowWindow ) Grüße aus Trier
|
|
|
|