printer Handshake
-
I have been trying to monitor the handshake (signal) from a printer for each page it printed but i have not been able to do so. Can any out there help me.
That might be a little too low level for C# to handle easily. In the Windows DDK there are a set of parallel port functions you can try to hook into (like
IOCTL_INTERNAL_GET_PARALLEL_PORT_INFO
) but I don't think any of them have been exposed in C#. And that assumes that you are using a parallel port printer. If you are doing lower level OS I/O, C# tends to be a poor choice to use. The abstraction layerPrintDocument
is there to avoid the messy OS level details of talking to the hardware. Why are you interested in the hardware communication? -
That might be a little too low level for C# to handle easily. In the Windows DDK there are a set of parallel port functions you can try to hook into (like
IOCTL_INTERNAL_GET_PARALLEL_PORT_INFO
) but I don't think any of them have been exposed in C#. And that assumes that you are using a parallel port printer. If you are doing lower level OS I/O, C# tends to be a poor choice to use. The abstraction layerPrintDocument
is there to avoid the messy OS level details of talking to the hardware. Why are you interested in the hardware communication?Am interested because am writting a printer monitoring program that will monitor the printerout from any printer.where am having problem is getting the actual number of pages printed and also to be able to know when a page is printed in a situation where there is more than one page of the document.