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. Windows Forms
  4. how to create a new printer and add to the list

how to create a new printer and add to the list

Scheduled Pinned Locked Moved Windows Forms
csharpvisual-studiohelptutorial
7 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.
  • G Offline
    G Offline
    genius_palli
    wrote on last edited by
    #1

    Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli

    D S G 4 Replies Last reply
    0
    • G genius_palli

      Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli

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

      Your application should not be installing printers at all. This is either a pre-req that needs to be installed prior to running your app, or possibly even something that is installed with your application, but should not be done at run-time. There are plenty of cases where users may not be able to install printers. Since a Windows app runs as the user, it has no more permissions to the system that the user does.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      • G genius_palli

        Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli

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

        Can I assume you're not creating a "real" printer, but a virtual one... sort of similar to the "Send to OneNote" and "Microsoft XPS Document Writer" printers?

        1 Reply Last reply
        0
        • G genius_palli

          Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli

          G Offline
          G Offline
          genius_palli
          wrote on last edited by
          #4

          Thanks to all of you for your suggestions. Ok..I think I should provide enough details to clear the scenario. I need to create a custom "print to pdf" driver that when installed on a machine would appear in the print dialog of any application. When the users click on the print button, they will have an option to choose this printer. When they choose this printer, it will prompt for a location and then save files there as a PDF file. Hope that helps. Looking forward for your replies. Thanks -- Palli

          1 Reply Last reply
          0
          • G genius_palli

            Hi all I am new to the site and sorry if I have posted on the wrong forum. Basically I am a web developer and dealing first time with the windows application.:confused: I need to create a custom printer via coding and add it to the list and made it available to the user whenever the user clicks on the print from the file menu. I am using visual studio 2005 with vb.net . Well this is the first step. please help me. Any clues and suggestions will be highly appreciable. Thanks -- Palli

            G Offline
            G Offline
            genius_palli
            wrote on last edited by
            #5

            Further research into the topic has cleared the picture more. I need to develop a virtual printer that would be available to the user in the print list option of any application like word etc, when the user will select the virtual printer, it will ask for the location to save the file and would then save the file on the specified location as a PDF file. Any suggestions so that I can start working would be highly appreciable. Thanks

            G 1 Reply Last reply
            0
            • G genius_palli

              Further research into the topic has cleared the picture more. I need to develop a virtual printer that would be available to the user in the print list option of any application like word etc, when the user will select the virtual printer, it will ask for the location to save the file and would then save the file on the specified location as a PDF file. Any suggestions so that I can start working would be highly appreciable. Thanks

              G Offline
              G Offline
              genius_palli
              wrote on last edited by
              #6

              Hello everyone.. I have managed to add a virtual printer to the printer list. And now the task is to create a PDF from the added printer. Any suggestions regarding ? Could I get the drivers from somewhere for the printer that creates a PDF of the document ? Thanks -- Palli

              S 1 Reply Last reply
              0
              • G genius_palli

                Hello everyone.. I have managed to add a virtual printer to the printer list. And now the task is to create a PDF from the added printer. Any suggestions regarding ? Could I get the drivers from somewhere for the printer that creates a PDF of the document ? Thanks -- Palli

                S Offline
                S Offline
                Sk93
                wrote on last edited by
                #7

                there is no direct method of doing what you want to achieve in C# To begin with, you'll need to write your own custom printer driver for your virtual printer to use. You will need to do a lot of api wrapping, as there is no interface in C# to help you here. Your best bet is to start looking into the Windows Driver Development kit and see if you can find out exactly what you need to do. (and expect to be writing a c++ wrapper too I guess)

                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