printer access

This is a discussion on printer access within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way in VC6 to access an installed printer, which is NOT the default printer, without starting up ...

  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
    zen
    zen is offline
    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,859
    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, 12:13 PM
  2. Set Printer Prior To Loading Print Dialog Box
    By Beaner in forum Windows Programming
    Replies: 3
    Last Post: 10-10-2008, 02: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, 10:12 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21