Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. printer Handshake

printer Handshake

Scheduled Pinned Locked Moved C#
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ankwa
    wrote on last edited by
    #1

    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.

    T 1 Reply Last reply
    0
    • A Ankwa

      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.

      T Offline
      T Offline
      Tom Larsen
      wrote on last edited by
      #2

      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 layer PrintDocument is there to avoid the messy OS level details of talking to the hardware. Why are you interested in the hardware communication?

      A 1 Reply Last reply
      0
      • T Tom Larsen

        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 layer PrintDocument is there to avoid the messy OS level details of talking to the hardware. Why are you interested in the hardware communication?

        A Offline
        A Offline
        Ankwa
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups