Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Do I have to have a default printer?  (Read 8095 times)

0 Members and 1 Guest are viewing this topic.

geoffl

    Topic Starter


    Intermediate

    • Experience: Beginner
    • OS: Unknown
    Do I have to have a default printer?
    « on: November 23, 2012, 01:02:54 AM »
    Hi,
    I have 2 programs on my computer and I want them to use different printers. Can I do this without going to the printer folder and changing the default printer?
    Regards
    Geoffl

    jason2074



      Egghead

    • It doesn't matter.
    • Thanked: 224
    • Experience: Beginner
    • OS: Windows 7
    Re: Do I have to have a default printer?
    « Reply #1 on: November 23, 2012, 06:08:55 AM »
    You can go to Start, Devices and Printers and right-click the Printer to be used and set as default or try this http://www.addictivetips.com/windows-tips/change-default-printer-for-different-print-jobs/

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Do I have to have a default printer?
    « Reply #2 on: November 23, 2012, 08:45:02 AM »
    Yes, you have to have a default printer.  But, you don't need to change the default printer when you want to use a different printer.  Just select the non-default printer you want to use from your print setup panel within the software you're using.  Or, get the third-party add-on utility that jason2074 posted; it allows setting different default printers for different printers, which is something Windows does not do.

    geoffl

      Topic Starter


      Intermediate

      • Experience: Beginner
      • OS: Unknown
      Re: Do I have to have a default printer?
      « Reply #3 on: November 23, 2012, 10:34:00 PM »
      Thank you for that. I didn't think I wuld need another program. I thought maybe there was a command I could put in my programs opening bat file to do it. What command is sent when you click 'set as default printer'?
      regards
      Geoffl

      quaxo



        Guru
      • Thanked: 127
        • Yes
      • Computer: Specs
      • Experience: Guru
      • OS: Windows 11
      Re: Do I have to have a default printer?
      « Reply #4 on: November 24, 2012, 08:40:00 PM »
      There is no way to effectively do this without a third-party program. The program recommended in that link (Automatic Printer Switcher) would be the best way to go. It remembers program/file specific settings so that it always prints to the correct printer depending on the file. A batch would only be effective if the program was launched from the batch file, and would need to be switched back for all other programs.

      With Automatic Printer Switcher, there's no need to worry about switching it back, printing while multiple programs are open that use different printers, etc.

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Do I have to have a default printer?
      « Reply #5 on: November 25, 2012, 02:47:22 AM »
      What command is sent when you click 'set as default printer'?
      [/quote]

      None. Setting the default printer sets the default printer for the current user on the local machine by calling SetDefaultPrinter() in winspool.drv. It is possible as well to set the default printer using a VBScript.

      However, I think the idea you are approaching, which seems to suggest making a short script to change the default printer, run the program, and set it back, has a glaring flaw...

      setting the default printer sets it for all applications. So if you run the program more than once, the default printer won't change back. And if you try to do it for multiple programs, you'll have almost no idea where you are really setting it, and the entire thing becomes a game of musical chairs as the printers are randomly shuffled as the default.


      The above program does the job by hooking when other programs use the printer and changing the settings before printing. This would probably do what you like. There is the possible issue about what takes precedence when you change options on the printer setup dialog of an application, but for your use case it's capabilities seem to fit the bill.

      Program-specific "default" printer settings are program specific. Some programs will allow you to choose a default for that program, others will not.
      I was trying to dereference Null Pointers before it was cool.

      geoffl

        Topic Starter


        Intermediate

        • Experience: Beginner
        • OS: Unknown
        Re: Do I have to have a default printer?
        « Reply #6 on: November 26, 2012, 04:59:45 AM »
        Thank you all so much for your help. It is really appreciated.
        Geoffl