Page 1 of 1

Programatically Change the Default Printer on Windows

PostPosted: Wed Sep 16, 2015 9:53 pm
by schmutly
Howdy,
Is there a way to Programmatically Change the Default Printer to different one on Windows using neobook or plugin?
Rob

Re: Programatically Change the Default Printer on Windows

PostPosted: Thu Sep 17, 2015 4:45 am
by stu
What about using VBScript as described here or here

Re: Programatically Change the Default Printer on Windows

PostPosted: Thu Sep 17, 2015 6:03 pm
by schmutly
I'll have a look at those, thanks Stu.
Rob

Re: Programatically Change the Default Printer on Windows

PostPosted: Sat Sep 19, 2015 9:20 am
by skwood
The excellent npUtil plugin may be very useful here:

npGetPrintersList
npSetDefaultPrinter
npGetDefaultPrinter

https://www.davidesperalta.com/NeoPlugins#npUtil

Re: Programatically Change the Default Printer on Windows

PostPosted: Sat Sep 19, 2015 3:53 pm
by stu
skwood wrote:The excellent npUtil plugin may be very useful here:

npGetPrintersList
npSetDefaultPrinter
npGetDefaultPrinter

https://www.davidesperalta.com/NeoPlugins#npUtil


Well spotted dude! I have the plugin and didnt even knew about this!!!

Re: Programatically Change the Default Printer on Windows

PostPosted: Sat Sep 19, 2015 7:37 pm
by schmutly
Me too.. :lol: