Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Many Print Jobs In A Windows Printer Queue ???
Message
 
 
À
15/07/2001 07:45:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00530760
Message ID:
00530770
Vues:
24
>I am sending a number of print jobs to a Windows Fax driver. I assume that Windows treats this like any other printer "queue" (as I can see the print jobs in the fax driver's queue before they are handed to the fax software's service layer).
>
>Whilst I am creating/sending these jobs, I would very much like to know how many jobs are currently in the fax driver's queue. Is there a Windows API function that will return information (like the number of jobs) about a specified printer whether it be a fax driver or any other printer for that matter ?
>
>Any help would be very much appreciated. It works for a print queue.

There is a list of API calls you need to get info about the jobs.

First, use the OpenPrinter function to retrieve a handle to the specified printer or print server.
Second, use the EnumJobs function to retrieve information about a specified set of print jobs for a specified printer.
Third, use the ClosePrinter function to closes the specified printer object.

I have a working code that uses a modified struct class from download section to do it. If you are interested I can email it to you tomorrow.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform