Solved

trigger program when printing occurs

Posted on 2010-09-23
9
499 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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
 

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:hdhondt
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

777 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