Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print PDF Silently
Message
 
To
05/12/2014 13:10:00
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01611911
Message ID:
01612173
Views:
83
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform