Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How many pages printed
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01141921
Message ID:
01142177
Vues:
12
Bernardo,

I have two VFP code samples (membership required) on my web site:

Using Change Notification Objects to monitor changes to the printer or print server
http://www.news2news.com/vfp/?example=485

Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer
http://www.news2news.com/vfp/?example=373

They may give you an idea of what can be achieved (at least) with Windows API calls.

The first code sample works in blocking mode. It allows to obtain the name of the printer, the name of the machine that created the job, the number of pages to be printed and already printed, the size of the job in bytes and more.

Also check WMI objects:
http://www.news2news.com/vfp/?example=368&ver=wmi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform