Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return number of jobs from printer queue
Message
 
 
To
07/01/2005 08:01:09
Jeffrey Havelock
Skipton Information Group
Leeds, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00975027
Message ID:
00975029
Views:
18
This message has been marked as the solution to the initial question of the thread.
Jeff,

It's covered in my How can I get the number of jobs in print queue FAQ #8114

>
>I'm new to working with API's and to be honest, am struggling in finding any relevant FoxPro examples. I want to get a handle to a printer, return the number of jobs, and then close the printer handle.
>
>Simple enough I hear you cry ...
>
>just use OpenPrinter(), ENumJobs(), ClosePrinter() functions. OK, I've got this far, I've declared the API calls in winspool.drv.
>
>Now I just need to use these functions ... HELP!!!! What values do I pass? The descriptions on MSDN are vague to say the least. Does anyone have any code similar to this or can anyone tell me how to use these API calls?
>
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform