Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Many Print Jobs In A Windows Printer Queue ???
Message
De
15/07/2001 11:20:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00530760
Message ID:
00530775
Vues:
31
Sergey:

>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.

You're the man! This is exactly what I need to do.

>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.

I would be very very pleased to receive a copy of your modified class. I am creating RTF documents in VFP, opening them up in Word (via automation) and then using the Word printout method to print them to the specified fax driver. Sometimes, the fax driver seems to get "over-run" (VFP talking to Word talking to a Third Party fax system), and the whole process goes "pear-shaped".

At the moment, I am creating a time delay between calls tho the print method but sometimes that doesn't help either. However, the problem seems to disappear when the fax driver queue only holds a single job at a time. So, I would like to monitor the fax driver queue and only print the next job to it when it is empty (free of print jobs).

I notice you are in Bronx. I was over in New York at the end of March for a few days. Wow, what a busy place it is. Me and my Wife absolutely loved NY. We did a mad tour in just a few days but never got to go to Bronx :(

Are you independent or do you work for a company? What's the VFP market like in NY? Just curious...

Anyhow, I really appreciate your help.
-=Gary
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform