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. C# Print Driver

C# Print Driver

Scheduled Pinned Locked Moved C#
csharptutorialquestion
5 Posts 3 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.
  • C Offline
    C Offline
    cobyjone
    wrote on last edited by
    #1

    I want to create a print driver in C# that a user could print to and it would create a file on there computer. Is this possible? Does anyone know of an example that I could refer to? Thanks a lot.

    C 1 Reply Last reply
    0
    • C cobyjone

      I want to create a print driver in C# that a user could print to and it would create a file on there computer. Is this possible? Does anyone know of an example that I could refer to? Thanks a lot.

      C Offline
      C Offline
      cobyjone
      wrote on last edited by
      #2

      Just to clarify, I want a user to be able to print to a printer that is set up to use this print driver and have it's output be a tiff image or whatever format I choose to implement. Would something like this be possible?

      W D 2 Replies Last reply
      0
      • C cobyjone

        Just to clarify, I want a user to be able to print to a printer that is set up to use this print driver and have it's output be a tiff image or whatever format I choose to implement. Would something like this be possible?

        W Offline
        W Offline
        WillemM
        wrote on last edited by
        #3

        You can print to file.. :) using the normal windows printer functions. But I don't know if that is what you're looking for. "Every rule in a world of bits and bytes can be bend or eventually be broken"

        C 1 Reply Last reply
        0
        • W WillemM

          You can print to file.. :) using the normal windows printer functions. But I don't know if that is what you're looking for. "Every rule in a world of bits and bytes can be bend or eventually be broken"

          C Offline
          C Offline
          cobyjone
          wrote on last edited by
          #4

          No, because if I am not mistaken, print to file just sends the data stream that it would send to a printer to a file.

          1 Reply Last reply
          0
          • C cobyjone

            Just to clarify, I want a user to be able to print to a printer that is set up to use this print driver and have it's output be a tiff image or whatever format I choose to implement. Would something like this be possible?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            It's possible, but c# was not designed to do such low level work. Besides, I think what you want already exists. Install a new local printer, chose FILE: as the port, when you get to picking the printer driver, install Generic/Generic Text. Then you can output whatever you want. You'll have to output the file format yourself so you better know the exact format of a TIFF file or what ever your going to print. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            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