Solved

trigger program when printing occurs

Posted on 2010-09-23
9
497 Views
Last Modified: 2013-12-16
Hello all

I would like to create a watched folder that will trigger when a print job is added.

We all know that once a job is printer to a server a spool file is created. So i was thinking maybe a watched folder program to watch that spool file

However what if im monitering only one queue, or even a set of queues. I dont want the program to go firing when someone prints to a printer i havent specified

So can you assign a spool folder to a printer?
0
Comment
Question by:samelamin
  • 4
  • 3
9 Comments
 
LVL 21

Expert Comment

by:surajguptha
ID: 33750074
Let me know if I have understood your question correctly.
You want to launch a program or do something in response to a print job added to a specific printer?
0
 
LVL 21

Accepted Solution

by:
surajguptha earned 500 total points
ID: 33750083
If I have understood you correctly, here is a possible solution.
http://www.codeproject.com/KB/printing/printwatchvbnet.aspx
0
 

Author Comment

by:samelamin
ID: 33821157
Sorry for the late reply, yes that is exactly what im looking for
Any chance you have it in C#?
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 33826753
Check this out. It probably has the solution you are looking for.
http://www.experts-exchange.com/Programming/Languages/Q_23920826.html
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:samelamin
ID: 33829365
However i also want to convert the PS file to PDF. problem is i dont want the dialog to come up, just save it accoding to what the name of the document printed?
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 33831587
I am not able to view the code that brings up the dialog. Can you please share it here?

Thanks
0
 

Author Comment

by:samelamin
ID: 33838324
I dont have a code at all im still at the design process you see

ANd just wondering if its possible

Can i extract the original document from the spool file created (.SHD/SPL) or maybe convert them to PS?
0
 
LVL 38

Expert Comment

by:Herman D'Hondt
ID: 34040522
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now