CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Change Default Printer

    I have 2 printers on my computer. I can change default printer through Control Panel or from VB using Common Dialog. How to change default printer from VB code?
    Thank you
    Vlad


  2. #2
    Join Date
    Sep 1999
    Location
    Germany
    Posts
    66

  3. #3
    Guest

    Re: Change Default Printer

    set printer(0) sets the default printer
    set printer(1) sets another
    set printer(2) sets another etc

    to find your list of printers do this

    dim x as printer
    for each x in printers
    form1.print x.devicename
    next x


    it`ll print a list of all yer devices that print



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured