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 Check if my Printer is Connected

How to Check if my Printer is Connected

Scheduled Pinned Locked Moved C#
csharphelptutorial
6 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.
  • M Offline
    M Offline
    mostafa_h
    wrote on last edited by
    #1

    hi i want to check if my printer is connected to my pc and show my model (using c# code ). plz help me . thx in advance

    s_mostafa_h

    S M 2 Replies Last reply
    0
    • M mostafa_h

      hi i want to check if my printer is connected to my pc and show my model (using c# code ). plz help me . thx in advance

      s_mostafa_h

      S Offline
      S Offline
      Spacix One
      wrote on last edited by
      #2

      Alright, I'll help you with your post as requested:

      mostafa_h wrote:

      Currently I'm trying to check if a printer is connected to my computer. I am using this code:

      //the code you've tried

      and I was getting this error message: The error message you was getting goes here After I get this to work, I would like to know if there is a way to detect the printer's model number or type of printer. I looked on google and found this Url to example[^] but it is using native API's and that I don't know how to call in C#

      s_mostafa_h


      -Spacix All your skynet questions[^] belong to solved

      M 1 Reply Last reply
      0
      • M mostafa_h

        hi i want to check if my printer is connected to my pc and show my model (using c# code ). plz help me . thx in advance

        s_mostafa_h

        M Offline
        M Offline
        Mustafa Ismail Mustafa
        wrote on last edited by
        #3

        Have you tried google? I got this on the very first hit. Clickety[^] Clickety 2[^]

        "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler "You're an idiot." John Simmons, THE Outlaw programmer "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon

        M 1 Reply Last reply
        0
        • S Spacix One

          Alright, I'll help you with your post as requested:

          mostafa_h wrote:

          Currently I'm trying to check if a printer is connected to my computer. I am using this code:

          //the code you've tried

          and I was getting this error message: The error message you was getting goes here After I get this to work, I would like to know if there is a way to detect the printer's model number or type of printer. I looked on google and found this Url to example[^] but it is using native API's and that I don't know how to call in C#

          s_mostafa_h


          -Spacix All your skynet questions[^] belong to solved

          M Offline
          M Offline
          mostafa_h
          wrote on last edited by
          #4

          what's ur mean ? where did u find and copy this and put to my message ? i don't remember to post this before , sorry !

          s_mostafa_h

          1 Reply Last reply
          0
          • M Mustafa Ismail Mustafa

            Have you tried google? I got this on the very first hit. Clickety[^] Clickety 2[^]

            "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler "You're an idiot." John Simmons, THE Outlaw programmer "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon

            M Offline
            M Offline
            mostafa_h
            wrote on last edited by
            #5

            thanx a lot !

            s_mostafa_h

            M 1 Reply Last reply
            0
            • M mostafa_h

              thanx a lot !

              s_mostafa_h

              M Offline
              M Offline
              Mustafa Ismail Mustafa
              wrote on last edited by
              #6

              You're welcome, but please in the future spend a good 10-20 minutes googling your query and reading the results. If that doesn't work, post to the forums. Till the next time :)

              "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler "You're an idiot." John Simmons, THE Outlaw programmer "I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon

              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