Solved

trigger program when printing occurs

Posted on 2010-09-23
9
501 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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