Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using Windows API functions to monitor a printjob and able to get the information like document name, job id, machine name etc. Now I paused the current print job by using the jobid successfully. The question is now I want to add a watermark to the document and resume the printer. I tried to get the Full path of the document but no data structure in Windows API printing gives it. Any help would be appreciated.

What I have tried:

Tried
PRINTER_NOTIFY_INFO_DATA 
structre
PrintQueue class
PrintSystemJobInfo class
Posted
Updated 18-Jun-18 0:17am

 
Share this answer
 
Comments
Dilan Shaminda 18-Jun-18 5:59am    
I googled a lot. There are a lot of examples. But my question is, how to add a watermark to a document which is already in the printer queue?
#realJSOP 18-Jun-18 7:26am    
As far as I know, once it's in the queue, it cannot be modified. It can only be removed from the queue. If your printer does not have a watermark feature, you have to add the watermark to your document before sending it to the printer.
Dilan Shaminda 18-Jun-18 8:32am    
Thank you
I believe you can't add a watermark to a printed document through the WinAPI, because a print queue is not the same as a list of filenames. It's a list of jobs to print with their names, but it doesn't mean you have an access to the list of documents, which are already printed....
 
Share this answer
 
Comments
Dilan Shaminda 18-Jun-18 6:50am    
Thanks for the info :-) Is there any way that I can get the full path of the document?
Maciej Los 18-Jun-18 7:11am    
Trully... i think it's impossible...
Dilan Shaminda 18-Jun-18 8:32am    
Thank you
Maciej Los 18-Jun-18 8:33am    
You're very welcome

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900