PC Review


Reply
Thread Tools Rate Thread

Retrieve jobs from Print Queue

 
 
RB0135
Guest
Posts: n/a
 
      20th Oct 2008
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
 
Reply With Quote
 
 
 
 
Michel Posseth [MCP]
Guest
Posts: n/a
 
      20th Oct 2008

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" <(E-Mail Removed)> schreef in bericht
news:9238e14a-d8b7-448d-b823-(E-Mail Removed)...
> 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



 
Reply With Quote
 
RB0135
Guest
Posts: n/a
 
      20th Oct 2008
Thanks for that... That gives me a good start.

Robert


On Oct 21, 5:41*am, "Michel Posseth [MCP]" <M...@posseth.com> wrote:
> 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.au> schreef in berichtnews:9238e14a-d8b7-448d-b823-(E-Mail Removed)...
>
>
>
> > 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 -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print jobs don't get into queue when print server is offline Technophile Windows XP Networking 0 25th Apr 2010 04:34 PM
Can not delete print jobs or files in print queue =?Utf-8?B?S3VydCBNLiBTYW5nZXI=?= Windows XP General 1 24th May 2006 03:00 AM
Re: Print Queue not releasing print jobs after printing. Peter Windows XP Help 0 14th Sep 2004 09:39 PM
local print queue to hold print jobs Jeff Printers 0 26th Apr 2004 10:45 PM
Jobs not showing up in Print Queue Gil Microsoft Windows 2000 Printing 0 1st Aug 2003 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:23 AM.