Hi Joca.
I've actually written exactly this for someone once. I had to sign a
NDA so I can't give you the code or any samples.
However, you have to use the DDK for your operating system. For
instance if you use WinXP, you need WinXPDDK. The ddk provides example
of print and one in particular that you need to look at is called
genprint. What this means is that you write a driver that captures all
data sent to the printer and if you want to do something with that
data, then you have to send that data to your app.
These links should give u a good start for learning about print
interception. More specifically look into Print Processors.
General Print DDK Information - Good Beginners Guide.
http://msdn.microsoft.com/library/de...49b7f2.xml.asp
Print Processors DDK Information
http://msdn.microsoft.com/library/de...d22815.xml.asp
Mild Discussion on Print Interception
http://www.osronline.com/lists_archi...hread5378.html
If you do a search on GOOGLE GROUPS for genprint, you should see tons
of information on there. I believe that I looked at all the messages
dealing with Print Processors and genprint before I wrote my
component.
By the way, the DDK is available from MS and its quite expensive. If
you have a MSDN Subscribers Download account then you should be ok.
If you have any other questions and if I can help, don't hesitate to
ask...worst case, someone else might be able to give u further
insight. :-)
Sushant