473,385 Members | 1,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

List of printer exceptions?

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
Nov 21 '05 #1
6 2366
* "Pipo" <No****@me.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
Anyway wich is necassary so I can get these exceptions back!
tried it so far with CrystalReports but no luck yet.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schreef in bericht
news:2o************@uni-berlin.de...
* "Pipo" <No****@me.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #3
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.

Nov 21 '05 #4
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.

Nov 21 '05 #5
Hi Peter,

thank you, I'll wait for your results.

""Peter Huang"" <v-******@online.microsoft.com> schreef in bericht
news:nZ*************@cpmsftngxa06.phx.gbl...
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.

Nov 21 '05 #6
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/de...us/gdi/prntspo
l_6gvm.asp
GetJob
http://msdn.microsoft.com/library/de...us/gdi/prntspo
l_2uci.asp

PRINTER_INFO_6
http://msdn.microsoft.com/library/de...us/gdi/prntspo
l_82cy.asp

GetPrinter
http://msdn.microsoft.com/library/de...us/gdi/prntspo
l_1gky.asp

HOW TO: Determine Printer Status and Print Job Status from Visual Basic
http://support.microsoft.com/default...b;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.

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bruce Wood | last post by:
I'm having a devil of a time calling DeviceCapabilities() in order to get the list of paper names / codes / sizes for a printer. Here is my code and the input it produces: static extern Int32...
2
by: Amrendra Nath | last post by:
Hi Friends ! Can anyone help? Its an urgent. I wanted to print PDF Document or Scanned Document Through my .aspx page .By just clicking a button.I'm not using codebehind.I want to do printing at...
2
by: felecha | last post by:
I learned about Exceptions in School, and now that I'm building my first real application on the job, I'm going through it trying to analyze it for all possible Exceptions so I can handle them...
2
by: J | last post by:
Hello, I'm using the following snippet of code to try and get a list of all the printers installed on this machine. I have installed some network printers on this machine and they just won't...
0
by: vpundru | last post by:
Hi, i need to get the printer list of the client in ASP.Net and need to set the printer to a particular tray to print. Regards Venkat
3
by: ramhog | last post by:
I see exceptions in lots of different namespaces. Is there a complete list somewhere of all the exceptions from all the different namespaces? Thanks.
0
by: Iain Wilson | last post by:
Hi All I am trying my hand at printing from a web page for the first time. I have been asked to print what amounts to many pages of data in response to a button click. The scenario is as...
4
by: Luqman | last post by:
I am using Visual studio 2008 and ASP.Net 3.5 How can I fill a combo with List of Local Printers, installed on Client Machine ? If I have to buy any Activex Control from Internet, please do...
0
by: drewgy | last post by:
Can anyone tell me how to get a list of full UNC paths for all printers on a network? I have tried using WMI but the following code only gives me a list of local printers, and doesn't give me the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.