Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How many pages printed
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01141921
Message ID:
01142177
Views:
11
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
Previous
Reply
Map
View

Click here to load this message in the networking platform