473,799 Members | 3,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Retrieve jobs from Print Queue

Hi All,

Is this possible:
1) An application prints to a printer/print queue (mainly XP).
2) A vb.net application monitors the print queue (I know this can be
done)
3) Retrieve the RAW information from the PrintJob (Cant seem to find
anything on this)
4) Delete the Job when I have the RAW information (I know this can be
done)

Currently, I have the application (in #1) print to a LPD print queue,
which then creates a file in a directory, then the vb.net app picks up
the file and processes it.. This works pretty good, but if I could get
the VB.NET app pickup the print job file, then that would suit better.

Any ideas? Would prefer code, not a commercial solution..

Thanks,
Robert
Oct 20 '08 #1
2 7997

You are right it all can be done it just requires at least Framework 3.0
and some digging in the new system.Printing namespace or a lot of API
knowledge

You can use PrintQueue.Curr entJobSettings property to get an
object(PrintJob Settings Class type) that contains the configuration settings
for the current print job. It has a property CurrentPrintTic ket(PrintTicket
class type). The PrintTicket members hold all the detailed settings for the
print job

HTH

Michel Posseth
http://www.vbdotnetcoder.com/.


"RB0135" <ro****@joshie. com.auschreef in bericht
news:92******** *************** ***********@x1g 2000prh.googleg roups.com...
Hi All,

Is this possible:
1) An application prints to a printer/print queue (mainly XP).
2) A vb.net application monitors the print queue (I know this can be
done)
3) Retrieve the RAW information from the PrintJob (Cant seem to find
anything on this)
4) Delete the Job when I have the RAW information (I know this can be
done)

Currently, I have the application (in #1) print to a LPD print queue,
which then creates a file in a directory, then the vb.net app picks up
the file and processes it.. This works pretty good, but if I could get
the VB.NET app pickup the print job file, then that would suit better.

Any ideas? Would prefer code, not a commercial solution..

Thanks,
Robert

Oct 20 '08 #2
Thanks for that... That gives me a good start.

Robert
On Oct 21, 5:41*am, "Michel Posseth [MCP]" <M...@posseth.c omwrote:
You are right it all can be done it just requires at least Framework 3.0
and some digging in the new system.Printing *namespace or a lot of API
knowledge

You can use PrintQueue.Curr entJobSettings property to get an
object(PrintJob Settings Class type) that contains the configuration settings
for the current print job. It has a property CurrentPrintTic ket(PrintTicket
class type). The PrintTicket members hold all the detailed settings for the
print job

HTH

Michel Possethhttp://www.vbdotnetcod er.com/.

"RB0135" <rob...@joshie. com.auschreef in berichtnews:92* *************** *************** ***@x1g2000prh. googlegroups.co m...
Hi All,
Is this possible:
1) An application prints to a printer/print queue (mainly XP).
2) A vb.net application monitors the print queue (I know this can be
done)
3) Retrieve the RAW information from the PrintJob (Cant seem to find
anything on this)
4) Delete the Job when I have the RAW information (I know this can be
done)
Currently, I have the application (in #1) print to a LPD print queue,
which then creates a file in a directory, then the vb.net app picks up
the file and processes it.. This works pretty good, but if I could get
the VB.NET app pickup the print job file, then that would suit better.
Any ideas? Would prefer code, not a commercial solution..
Thanks,
Robert- Hide quoted text -

- Show quoted text -
Oct 20 '08 #3

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

Similar topics

2
2262
by: Thomas | last post by:
Hi, I used xsd.exe to generate a *.xsd file from the *.xml-File and then I created a typed DataSet in VisualStudio 2003 But now I have problems to read the data from the DataSet. <?xml version="1.0" encoding="UTF-8"?> <Message id="100199" version="1.9" something="1"> <Jobs id="999" priority="0">
0
1710
by: Broadica | last post by:
hi, i wanted to know how can we read and intercep printing job queue in our system which will be forward to a print server? senario: assume there is a network of computer. 10 pc. 1 of the pc.. is setup with a printer. and the printer is share among all pc in the network.
22
130444
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the document and closes it with the following code: <body onload="window.print(); window.close();"> This works correctly (or at least the way I expect it to work under MS Internet Explorer, but it cuases Netscape to "crash"
4
10302
by: Andy | last post by:
Hi, Does anyone know if there is a way to open the print queue dialog for a specified printer? I already know what the printers name is (e.g. \\server\printer1) but I would like to be able to show the standard Windows print queue dialog. Thanks,
1
1844
by: rkbnair | last post by:
Using VB, is there any way to manipulate print jobs? I mean, combine print jobs, change the order of the jobs and so forth? Thanks
6
12535
by: mtn244 | last post by:
Print jobs are not deleting from print queue after completion. This problem is on a peer-to-peer network of four computers and one printer. Windows 2000 with Service Pack 2 is the operating system. The print jobs, which display in the queue as "Printed", can be manually removed. Is there a configuration setting that dictates whether or not print jobs remain in the print queue? I am not experienced with networks and print queue...
4
4599
by: j_depp_99 | last post by:
Thanks to those guys who helped me out yesterday. I have one more problem; my print function for the queue program doesnt work and goes into an endless loop. Also I am unable to calculate the length of my queue. I started getting compilation errors when I included a length function. <code> template<class ItemType> void Queue<ItemType>::MakeEmpty() {
1
1844
by: zbrozlo | last post by:
Hi, I have strange problem with my perl program. My program consists of two parts, first written in python and second in perl. Perl part is a server, but also uses two sockets for "talking" with gui written in python. Problem is, that from totally unknown reason perl program quits at line, where i'm trying to 'print' anything for AWAY gui socket. Here's part of my code : #!/usr/bin/perl use strict; use warnings; use IO::Socket; use...
3
6724
by: John | last post by:
Hi. I have a number of batch jobs that are ran nightly on our Windows 2000 based Oracle 8.1.7 (soon to be 9i) server. I have these designed just right, so the Windows Scheduled Tasks runs them and then a parser goes through the output and, in case of errors, sends me a page... The database is our financial system which requires users to login using Oracle based user ID / Password.
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10482
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10225
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7564
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.