Solved

trigger program when printing occurs

Posted on 2010-09-23
9
498 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
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.

 

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

930 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

14 Experts available now in Live!

Get 1:1 Help Now