473,513 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printer Class in C#.NET 2.0

Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

Could you please tell me which class needs to be used in C#.NET 2.0 when we
are directly dealing with the Sytem Printer.
I am looking for some information on checking the properties of the Pages
which are pending to be "Printed".

Is there a way to programmtically check the status of the Page (to be
printed) which would say something like "PENDING", "SUCCESSFULLY PRINTED"
and so on...

Any leads on this would be very helpful.

Thanks in advance,
Kuldeep
Jun 19 '07 #1
2 2717
You could check the size of the "C:\WINDOWS\system32\spool\PRINTERS\"
folder. If it is 0 bytes then there is no printing in process, otherwise it
is printing.
BR,
Mystique

"Kuldeep" <ku****************@hotmail.comwrote in message
news:O5**************@TK2MSFTNGP06.phx.gbl...
Framework: Visual Studio 2005
Technology: ASP.NET 2.0
Language: C#.NET 2.0

Hi All,

Could you please tell me which class needs to be used in C#.NET 2.0 when
we are directly dealing with the Sytem Printer.
I am looking for some information on checking the properties of the Pages
which are pending to be "Printed".

Is there a way to programmtically check the status of the Page (to be
printed) which would say something like "PENDING", "SUCCESSFULLY PRINTED"
and so on...

Any leads on this would be very helpful.

Thanks in advance,
Kuldeep


Jun 19 '07 #2
Thanks for the response.
But I would like to know about any class which is available under the
Framework Library which would help us deal with the System Printer directly.

Kuldeep
You could check the size of the "C:\WINDOWS\system32\spool\PRINTERS\"
folder. If it is 0 bytes then there is no printing in process, otherwise
it is printing.
BR,
Mystique

Jun 19 '07 #3

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

Similar topics

2
2581
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
7
6861
by: Steve M | last post by:
Hello, I'm having problems sending information from a python script to a printer. I was wondering if someone might send me in the right direction. I wasn't able to find much by Google TIA...
3
1835
by: Brian | last post by:
Does anyone know how I can write a program to retrieve information about printers. Not the print queues but the physical hardware printer. I want to retrieve info such as pages printed. If...
3
5096
by: Olaf Rabbachin | last post by:
Hi folks, during printing, I'm constantly checking the printer-spooler to monitor whether a document has showed up in a printer's spooler and - after it has - whether the print-job has been...
11
9855
by: pamelafluente | last post by:
I am doing my own PrintDialog, and have placed there a combo with the printer names, as in the PrintDialog provided by VB.NET. Here is the question: how do I open the native windows printer...
4
1964
by: Gregory Gadow | last post by:
I've cobbled together a PrinterClass that takes a text file and dumps it to a printer. The app using is has multiple threads, all of which need access to a shared instance. Can someone point me to...
1
9613
by: ekynox | last post by:
Hi guys, have been playing with WMI to add a network printer connection to a Windows XP pc. My environment consists of a server running Windows Server 2003 and Visual Studio 2005 and a test pc...
9
10221
by: id10t error | last post by:
Hello, I am going to be using a Symbol WT4090 to scan items. I need to printer a tag from the Zebra ql320 plus. I am trying to do this is Visual basic 2005. Does anyone know and good site to...
1
4190
by: Steve | last post by:
Hi All I am using vb.net 2005 in a windows forms application I send data to the selected windows printer using a PrintDocument object Is there any way to detect if the Printer is not...
3
6778
by: Geeshan | last post by:
Hi All, I'm a newbie to the POS system. so please mind if my questions are stupid. I have an epson TM-U200 printer with USB connection and cash drawer connected to printer with RJ 11 cable. ...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7547
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5098
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.