Group: microsoft.public.word.vba.general
From: "Steve Yandl"
Date: Saturday, April 12, 2008 2:20 PM
Subject: Re: Print file with FSO?

Ed,

I've done this from a vbs file before and my approach was to use
acrord32.exe ("acrobat reader") which is typically located at "C:\Program
Files\Adobe\Acrobat 7.0\Reader\acrord32.exe" If you're doing this from VBA,
you would probably use the Shell function to launch the executable. To
print, you send it /t as an argument followed by the file name of the pdf
including path (which you will have from FSO). You can also send arguments
for printer name and printer driver.

The hassle with using acrord32.exe is that it doesn't close as expected when
the print job finishes. In my script, I used WMI to kill the process after
pausing long enough for print jobs to be spooled.

Steve Yandl


"Ed from AZ" wrote in message
news:35deeaf5-6d2a-41b5-b05d-5de5649835b0@x41g2000hsb.googlegroups.com...
> I'm trying to write a macro that will let me find a folder and simply
> print each file in that folder to the default printer. The files are
> PDFs. Using the FileSystemObject, I can get the Folder and File
> objects. But I can't seem to find a "Print" method in there
> anywhere?? WHat do I use?
>
> Ed