venerdì 12 dicembre 2014

Stampare PDF tramite VBScript

Se avete Necessità di stampare dei file PDF tramite VBScript
potete utilizzare Foxit Reader ( Link )

e con queste poche righe di codice potete lanciare stampe in background indicando anche la stampante:


strContentsfile="C:\test\miopdf.pdf"

PrinterPath="Nome_stampante"

Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run """C:\Programmi\Foxit Software\Foxit Reader\Foxit.exe "" /t "&strContentsfile&" "&PrinterPath&"", 0, True
set wshshell = nothing


Nessun commento:

Posta un commento