For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > August 2005 > Capture Printing Command









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Capture Printing Command
Samuel & Kim Blight

2005-08-29, 7:55 am

want to capture a print command, so that when someone prints to the colour
laser, a dialogue box appears and says "Do you really need to print in
colour". If yes is selected, it will print and if no is selected it won't.
I have vb and can create the dialouge box etc, but I can't find out how to
capture the print job and release it based on the decision made...

Can anyone point me in the right direction?

Many thanks



Jeff Johnson [MVP: VB]

2005-08-29, 6:55 pm


"Samuel & Kim Blight" <samblight@watchdog.net.nz> wrote in message
news:uVNTUvHrFHA.4044@TK2MSFTNGP09.phx.gbl...

> want to capture a print command, so that when someone prints to the colour
> laser, a dialogue box appears and says "Do you really need to print in
> colour". If yes is selected, it will print and if no is selected it
> won't.
> I have vb and can create the dialouge box etc, but I can't find out how to
> capture the print job and release it based on the decision made...
>
> Can anyone point me in the right direction?


Don't hold your breath. You're dealing with device drivers, which are very
low-level, and chances are good that VB can't get that low-level to
intercept such a thing.


Samuel Blight

2005-08-29, 6:55 pm

Thanks Jeff,

Surley there must be a system wide approach to be able to make this work.
After all, products like PCounter enable a pop-up box to work that users
then put in a code that the print job is charged against....

Or is this really complex?

Thanks heaps,


Samuel

"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
news:eNTRi9MrFHA.248@TK2MSFTNGP14.phx.gbl...
>
> "Samuel & Kim Blight" <samblight@watchdog.net.nz> wrote in message
> news:uVNTUvHrFHA.4044@TK2MSFTNGP09.phx.gbl...
>
>
> Don't hold your breath. You're dealing with device drivers, which are very
> low-level, and chances are good that VB can't get that low-level to
> intercept such a thing.
>



Jeff Johnson [MVP: VB]

2005-08-29, 6:55 pm


"Samuel Blight" <samuelb@tpp.ac.nz> wrote in message
news:%239ygSROrFHA.2272@TK2MSFTNGP11.phx.gbl...

> Surley there must be a system wide approach to be able to make this work.
> After all, products like PCounter enable a pop-up box to work that users
> then put in a code that the print job is charged against....
>
> Or is this really complex?


The issue is the language. The program(s) you've seen that do this were most
likely written in C++, not VB.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com