Thread: printer access

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    11

    Unhappy printer access

    Is there a way in VC6 to access an installed printer, which is NOT the default printer,
    without starting up the printer dialog ?

    Looking forward for suggestions,

    Peter

  2. #2
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    You can use EnumPrinters().
    zen

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Or GetProfileString() and OpenPrinter()

    Watch for the different PRINTINFO structs. (Win9x and NT/2000 use different ones) and for truncated printer names.

    (Do a search for past threads as there have been other questions similar to this, and there's code in the answers)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bluetooth printer
    By Opariti in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-01-2009, 11:13 AM
  2. Set Printer Prior To Loading Print Dialog Box
    By Beaner in forum Windows Programming
    Replies: 3
    Last Post: 10-10-2008, 01:02 PM
  3. changing property (layout) of a printer
    By leojose in forum Windows Programming
    Replies: 5
    Last Post: 12-05-2005, 07:16 AM
  4. printer gone crazy
    By DavidP in forum Tech Board
    Replies: 2
    Last Post: 03-29-2004, 01:16 AM
  5. Success - Output to Printer
    By noraa in forum C Programming
    Replies: 5
    Last Post: 08-04-2002, 09:12 AM