Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty printer spooler
Message
De
19/05/2010 17:03:41
Al Doman (En ligne)
M3 Enterprises Inc.
North Vancouver, Colombie Britannique, Canada
 
 
À
19/05/2010 15:03:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01465159
Message ID:
01465174
Vues:
59
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform