Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty printer spooler
Message
From
19/05/2010 17:03:41
 
 
To
19/05/2010 15:03:20
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01465159
Message ID:
01465174
Views:
58
>Any way to empty the printer spooler from within a VFP app?

I see you got some pointers to Sergey's code on how to remove one or more jobs.

However, if what you're actually trying to do is cancel a print job, in many environments emptying the print spooler won't work. Increasingly, printers have their own network interfaces and print servers, or are supported by a print queue on a server somewhere. In those cases, print jobs are immediately transferred from the print spooler to the printer's print server, or network server queue. As far as the print spooler is concerned, the job has finished printing. You can empty the spooler as much as you want, but there may not be any jobs left in it, and that won't stop the printer from printing the job.

It's also worth pointing out you should be cautious about deleting *all* print jobs from a spooler or queue, because you might delete legitimate jobs from other applications on the local computer, or other users in the case of a network server queue.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform