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. Hardware & Devices
  4. Virtual printer in C#

Virtual printer in C#

Scheduled Pinned Locked Moved Hardware & Devices
questioncsharpsysadminwindows-adminalgorithms
6 Posts 2 Posters 23 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.
  • S Offline
    S Offline
    SterlingRun
    wrote on last edited by
    #1

    Hi everyone. I need to write a virtual printer that can receive messages from a client but not actually do any physical printing. Instead the printing will be done in an application. I can write tcp client/server programs with no problems but have never tried a virtual printer. I have read some articles on the web but not quite what I need. I also have been searching for what is required in Windows for an install. Registry entries, Program Files, System32 ini files? Can someone point me in the right direction?

    L 2 Replies Last reply
    0
    • S SterlingRun

      Hi everyone. I need to write a virtual printer that can receive messages from a client but not actually do any physical printing. Instead the printing will be done in an application. I can write tcp client/server programs with no problems but have never tried a virtual printer. I have read some articles on the web but not quite what I need. I also have been searching for what is required in Windows for an install. Registry entries, Program Files, System32 ini files? Can someone point me in the right direction?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You will need to write a print driver, see Windows Driver Kit documentation - Windows drivers | Microsoft Docs[^].

      S 1 Reply Last reply
      0
      • L Lost User

        You will need to write a print driver, see Windows Driver Kit documentation - Windows drivers | Microsoft Docs[^].

        S Offline
        S Offline
        SterlingRun
        wrote on last edited by
        #3

        Thanks. I've been reading up on this and it appears to be the way to go.

        1 Reply Last reply
        0
        • S SterlingRun

          Hi everyone. I need to write a virtual printer that can receive messages from a client but not actually do any physical printing. Instead the printing will be done in an application. I can write tcp client/server programs with no problems but have never tried a virtual printer. I have read some articles on the web but not quite what I need. I also have been searching for what is required in Windows for an install. Registry entries, Program Files, System32 ini files? Can someone point me in the right direction?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Maybe what you really need is just to send a "pdf" (or docx or txt); i.e. using a "free" pdf print driver. Pdf's can be "queued" (for "printing"); if that makes a difference.

          "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

          S 1 Reply Last reply
          0
          • L Lost User

            Maybe what you really need is just to send a "pdf" (or docx or txt); i.e. using a "free" pdf print driver. Pdf's can be "queued" (for "printing"); if that makes a difference.

            "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

            S Offline
            S Offline
            SterlingRun
            wrote on last edited by
            #5

            It needs to be more of a dummy driver. I need to just receive the tcp message sent from a POS client for an Epson POS printer, parse the esc/pos data and display on a monitor.

            L 1 Reply Last reply
            0
            • S SterlingRun

              It needs to be more of a dummy driver. I need to just receive the tcp message sent from a POS client for an Epson POS printer, parse the esc/pos data and display on a monitor.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              That's plain text (file / message) that can go to any ESC/P printer / driver / app. The wording doesn't change that.

              "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

              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