Monitor a Network Printer

  • Thread starter Thread starter george
  • Start date Start date
G

george

Hi group, I am new to this group and since I didn´t find anything on
Internet related to my problem I wanted to know if anyone know or may
help me.

What I have to do is:
- Monitor a Network Printer
- When a specified document is printed (perhaps it can be identified by
the name), add a signature at the end of the document. This signature
can be any type of digital image (gif, jpg, tiff, etc).

The printer is an HP LaserJet and of course I want to do this with c#.

Thanks everybody.
 
Wow--I'm not sure that this is even possible. What you're trying to do is
modify a document either before it hits the print spooler or after it's
already in the spooler, and there are going to be quite a few complications.

If you can attach yourself to the program printing the document, your life
will be much easier, since you can intercept it.

Ulitmately, this is going to be very difficult to solve and is probably
better fixed by modifying the document or changing processes.

Robert

Hi group, I am new to this group and since I didn´t find anything on
Internet related to my problem I wanted to know if anyone know or may
help me.

What I have to do is:
- Monitor a Network Printer
- When a specified document is printed (perhaps it can be identified by
the name), add a signature at the end of the document. This signature
can be any type of digital image (gif, jpg, tiff, etc).

The printer is an HP LaserJet and of course I want to do this with c#.

Thanks everybody.
 
The fact is that it is not possible to do that from the program that
generates the document..that´s why I posted this message.
Anyone knows how to modify a printing process from the printer spool?


Robert May ha escrito:
 
Hello George,
What I have to do is:
- Monitor a Network Printer
- When a specified document is printed (perhaps it can be identified
by
the name), add a signature at the end of the document. This signature
can be any type of digital image (gif, jpg, tiff, etc).
The printer is an HP LaserJet and of course I want to do this with c#.

You may be interested in FinePrint (www.fineprint.com), particularly their
SE (Server Edition). They claim to be able to alter document significantly
before sending them to a 'real' printer.

If you are going to attempt to do this yourself, I think the easiest way
would be create a virtual printer and have the application / users in question
print to your new virtual printer. Then, you could modify the print stream
and send it on its way. This is (very) roughly what the FinePrint product
does.

You could also alter the client's printer to produce PostScript to a file,
then have your program monitor the folder where the PostScript is written,
open the PostScript and insert the signature that way and send to the 'real'
printer.

Good Luck,
Mark
 
Back
Top