List of printer exceptions?

  • Thread starter Thread starter Pipo
  • Start date Start date
P

Pipo

Hi,

Does anyone know how I can read out the printer status?
I want to sent a bulk of documents to the printer (or 1 by 1) but if
something goes wrong e.g. out of paper, cartridge empty, tray open,etc I
would like to get an exception back.
Is this possible?

tia
 
* "Pipo said:
Does anyone know how I can read out the printer status?
I want to sent a bulk of documents to the printer (or 1 by 1) but if
something goes wrong e.g. out of paper, cartridge empty, tray open,etc I
would like to get an exception back.

How do you send the documents to the printer?
 
Anyway wich is necassary so I can get these exceptions back!
tried it so far with CrystalReports but no luck yet.
 
Hi Pipo,

I am researching the issue and update you with new information ASAP.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Pipo,

Now I am researching the issue, and I will update you with new information
ASAP.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Pipo,

I think we may need to call the win32 API to get the printer status and
print job status by using the GetPritner and GetJob API.

Here are some links you may take a look.
JOB_INFO_1
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspo
l_6gvm.asp
GetJob
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspo
l_2uci.asp

PRINTER_INFO_6
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspo
l_82cy.asp

GetPrinter
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/prntspo
l_1gky.asp

HOW TO: Determine Printer Status and Print Job Status from Visual Basic
http://support.microsoft.com/default.aspx?scid=kb;en-us;202480

160129 HOWTO: Get the Status of a Printer and a Print Job
http://support.microsoft.com/?id=160129

228769 HOWTO: Retrieve Print Job Information
http://support.microsoft.com/?id=228769

Here is sample for VB6.
PrnInfo.zip
http://www.mvps.org/vb/index2.html?samples.htm

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top