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. Visual Basic
  4. How to read list of local and network printers

How to read list of local and network printers

Scheduled Pinned Locked Moved Visual Basic
sysadmintutorial
7 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
    KASR1
    wrote on last edited by
    #1

    we are developing an application which accesses local and network printers. How to read list of available printers in a machine and how classify them as local and network printers.

    L 1 Reply Last reply
    0
    • K KASR1

      we are developing an application which accesses local and network printers. How to read list of available printers in a machine and how classify them as local and network printers.

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

      There's an example in the manual[^].

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

      K 1 Reply Last reply
      0
      • L Lost User

        There's an example in the manual[^].

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

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

        Thanks for the update. I got the list of printers using http://www.cpearson.com/excel/GetPrinters.aspx[^] But i need to find network and local printers and classify them different groups. How to find local and network printers from the list?

        L 1 Reply Last reply
        0
        • K KASR1

          Thanks for the update. I got the list of printers using http://www.cpearson.com/excel/GetPrinters.aspx[^] But i need to find network and local printers and classify them different groups. How to find local and network printers from the list?

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

          KASR1 wrote:

          But i need to find network and local printers and classify them different groups. How to find local and network printers from the list?

          You can only get a list of apparatus that are "known" by the local installation. Some TCP/IP thingy will not be recognized, until the drivers are installed.

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

          K 1 Reply Last reply
          0
          • L Lost User

            KASR1 wrote:

            But i need to find network and local printers and classify them different groups. How to find local and network printers from the list?

            You can only get a list of apparatus that are "known" by the local installation. Some TCP/IP thingy will not be recognized, until the drivers are installed.

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

            K Offline
            K Offline
            KASR1
            wrote on last edited by
            #5

            Ok lets assume that i am getting five printers as follows 1. ABC 2. XYZ 3. TestPrinter1 4. TestPrinter2 5. TestPrinter3 In the above list some of them are network printers and how do i find newtwork printers programatically in VBA?

            L 1 Reply Last reply
            0
            • K KASR1

              Ok lets assume that i am getting five printers as follows 1. ABC 2. XYZ 3. TestPrinter1 4. TestPrinter2 5. TestPrinter3 In the above list some of them are network printers and how do i find newtwork printers programatically in VBA?

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

              http://support.microsoft.com/kb/q166008[^]

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

              K 1 Reply Last reply
              0
              • L Lost User

                http://support.microsoft.com/kb/q166008[^]

                Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

                K Offline
                K Offline
                KASR1
                wrote on last edited by
                #7

                Thank you for msdn cake !!. I will check that and let you know how it tastes. :)

                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