>How do I print a PDF silently?
>
>My code:
>
>ShellExecute(0, 'printto', lcpdffile, '"' + lcprinterName + '"', null,0)
>
>This code launches the Adobe Reader and keeps it open on the screen.
>We don't want to see the reader.
>How do I get rid of it?
>
>Please help.
>Deb
I think the easiest way would be to just copy the file to the printer
copy file (lcPDFFile) to (lcPrinterName)
Now, the only issue is that I tried before posting with some files, and I had trouble with one PDF, it worked fine with all the ones I tried except this one, I am not sure why would that one in particular fail (the log of the printer said it successfully printed 0 pages of it), so you should try several different documents just in case.
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges