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. How to get the printers in C#

How to get the printers in C#

Scheduled Pinned Locked Moved C#
csharpsecuritytutorial
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.
  • K Offline
    K Offline
    kalyanPaladugu
    wrote on last edited by
    #1

    1)Is there a way in C# to programatically get the printer list attached to the computer 2)How to check if a user is there in security for the printer attached to the computer in c# Any resources in that direction will be greatly appreciated

    M 1 Reply Last reply
    0
    • K kalyanPaladugu

      1)Is there a way in C# to programatically get the printer list attached to the computer 2)How to check if a user is there in security for the printer attached to the computer in c# Any resources in that direction will be greatly appreciated

      M Offline
      M Offline
      Martin 0
      wrote on last edited by
      #2

      Hello,

      kalyanPaladugu wrote:

      )Is there a way in C# to programatically get the printer list attached to the computer

      This should give you a collection of installed printers. (doesn't mean that they are connected!) System.Drawing.Printing.PrinterSettings.StringCollection installedprinter = System.Drawing.Printing.PrinterSettings.InstalledPrinters;

      kalyanPaladugu wrote:

      2)How to check if a user is there in security for the printer attached to the computer in c#

      Sorry, don't understand your question. All the best, Martin

      K 1 Reply Last reply
      0
      • M Martin 0

        Hello,

        kalyanPaladugu wrote:

        )Is there a way in C# to programatically get the printer list attached to the computer

        This should give you a collection of installed printers. (doesn't mean that they are connected!) System.Drawing.Printing.PrinterSettings.StringCollection installedprinter = System.Drawing.Printing.PrinterSettings.InstalledPrinters;

        kalyanPaladugu wrote:

        2)How to check if a user is there in security for the printer attached to the computer in c#

        Sorry, don't understand your question. All the best, Martin

        K Offline
        K Offline
        kalyanPaladugu
        wrote on last edited by
        #3

        1.For the first i think i figured out. Using System.Management API you can actually get the printers online. 2.If you go into the windows and go to start-settings-printers and faxes, select a printer and right click properties. You will find security and inside it you will find users. Is there a way to get to see those users programatically through c#

        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