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. printer

printer

Scheduled Pinned Locked Moved C#
css
4 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.
  • H Offline
    H Offline
    help as an alias
    wrote on last edited by
    #1

    can we choose printer during execution if yes please give me source.

    Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

    L H 2 Replies Last reply
    0
    • H help as an alias

      can we choose printer during execution if yes please give me source.

      Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

      L Offline
      L Offline
      lsconyer
      wrote on last edited by
      #2

      I'm not sure if you're using Visual Studio 2005 but if you are, theres a component called a PrintDialog that allow the user to choose which printer they would like to use.

      Lester http://www.lestersconyers.com

      H 1 Reply Last reply
      0
      • L lsconyer

        I'm not sure if you're using Visual Studio 2005 but if you are, theres a component called a PrintDialog that allow the user to choose which printer they would like to use.

        Lester http://www.lestersconyers.com

        H Offline
        H Offline
        help as an alias
        wrote on last edited by
        #3

        thanx but i want to choose dmp for printing on continous sheets (ie. invoice) and i want to choose printer duing execution of commandExlWorkBook.PrintOut(1, 1, 1, false, val, false, false, val); if u help me plz .............:):laugh::-D

        Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

        1 Reply Last reply
        0
        • H help as an alias

          can we choose printer during execution if yes please give me source.

          Nikesh Kr. Yadav CSS Infotech Sec- 31 Gurgaon, Haryana(India)

          H Offline
          H Offline
          Hessam Jalali
          wrote on last edited by
          #4

          You can use classes in System.Management namespace and some WMI query to do that for that I suggest you to search MSDN for WMI or windows management instruments and of course the program "Scriptomatic2" from Microsoft guys can help you a lot it can generate queries you needed for retrieving current printers and set the default printer. all you need is just some coding.! good luck

          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