473,385 Members | 1,855 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.

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 7943

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.CurrentJobSettings property to get an
object(PrintJobSettings Class type) that contains the configuration settings
for the current print job. It has a property CurrentPrintTicket(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**********************************@x1g2000p rh.googlegroups.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.comwrote:
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.CurrentJobSettings property to get an
object(PrintJobSettings Class type) that contains the configuration settings
for the current print job. It has a property CurrentPrintTicket(PrintTicket
class type). The PrintTicket members hold all the detailed settings for the
print job

HTH

Michel Possethhttp://www.vbdotnetcoder.com/.

"RB0135" <rob...@joshie.com.auschreef in berichtnews:92**********************************@x 1g2000prh.googlegroups.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- 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
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...
0
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...
22
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...
4
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...
1
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
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....
4
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...
1
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...
3
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...
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
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.