ADOBEPATH = "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
PDFFILE = tempname2
Shell """" & ADOBEPATH & """/p /h """ & PDFFILE & """"""
I don't see anything obviously wrong. Maybe 50 queue up while the
first one is printing and the queue is limited.
From:
http://stackoverflow.com/questions/619158/adobe-reader-command-line-reference
/n - Launch a new instance of Reader ever 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 <filename> - Open and go straight to the print dialog
/t <filename> <printername> <drivername> <portname> - Print the file
[to] the specified printer.
Perhaps /n or one of the other command line options will solve your
problem. If not, have Access wait awhile before sending each print
request so that several print jobs can finish first to keep the queue
below 50.
James A. Fortune
CDMAP...@FortuneJames.com
>I am trying to print some PDF documents via MS Access.
Try this:
CreateObject("Shell.Application").Namespace(0).ParseName("c:\mypdf\myDoc.pdf").InvokeVerb
("&Print")
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
Pleasenos...@msn.com