Solved

Query printer driver

Posted on 1997-04-13
4
380 Views
Last Modified: 2006-11-17
Is it possible to query the printer driver for a status report druing long print jobs? I.E. # of pages printed, percent of current job?  If so, how?
0
Comment
Question by:smokin
4 Comments
 

Expert Comment

by:mehoss
ID: 1425357
I found this...Perhaps someone else could give an example...

Declare Function GetQueuedCompletionStatus Lib "kernel32" Alias "GetQueuedCompletionStatus" (ByVal CompletionPort As Long, lpNumberOfBytesTransferred As Long, lpCompletionKey As Long, lpOverlapped As Long, ByVal dwMilliseconds As Long) As Boolean

0
 

Author Comment

by:smokin
ID: 1425358
Adjusted points to 100
0
 
LVL 1

Accepted Solution

by:
advapp earned 100 total points
ID: 1425359
Yes, the Win32 API includes a GetJob function (usable from VB) that will return info on a job including these items and more:
   Total Pages
   Pages Printed
   Position
   Job Status
   Time Submitted
   User Name

However, if you've never worked with the API via VB you might need some help working this out.  If you accept this answer, I'd be willing to forward the necessary declarations and work with you on the code.

If you reject this answer, I'll assume you are not interested.

0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1425360
Bought This Question.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question