oh come on Lee, I was talking about the AutoLisp portion being simple...don't put words into my mouth.
Yeah sorry, that was a cheap dig.
Anyway, I tried the 'copy' method today but, unfortunately was unsuccessful. The code runs without error, but nothing seems to happen.
Here is the code I have been trying, assume that 'pdfLst' is a list of full filenames of PDF files.
(startapp "net use lpt3 /delete")
(startapp "net use lpt3 \\\\<printserver>\\<printer>")
(foreach file pdfLst
(startapp (strcat "copy /b \"" file "\" lpt3"))
)
(startapp "net use lpt3 /delete")
(foreach file pdfLst
(startapp (strcat "copy /b \"" file "\" \\\\<printserver>\\<printer>"))
)
(foreach file pdfLst
(startapp (strcat "copy /b \"" file "\" //<printserver>/<printer>"))
)
Each with the same result as described above.
So far the closest I have got to printing is using:
(setq adobe "C:\\Program Files\\Adobe\\Reader\\AcroRd32.exe")
(foreach file pdfLst
(startapp (strcat adobe " /t /h \"" file "\""))
)
Which actually registers the necessary files on the print queue, but only the first is sent. The first file is open for longer than the subsequent files, so perhaps these files are not open long enough for the data to be sent to the printer... but, in any case, the printer registers a timeout error and fails to print all but the first file.
Lee