Click to See Complete Forum and Search --> : default printer
raicheman
Jan 3rd, 2000, 03:44 AM
Is there a way to change the default printer with code ?? If so what is it. I know the user can change the default printer with the common dialog box but I'm having a problem when I try to do it with code. Any help is appreciated
[This message has been edited by raicheman (edited 01-03-2000).]
nvileka
Jan 3rd, 2000, 04:46 AM
If u r on NT, u can use
"net use" command.
After constructing the command use Shell function to run it..
JoeH
Jan 3rd, 2000, 04:53 AM
Yes, you can use "net use ...." but that will not set the printer as default. It will simply add it. I'm not sure how you would do that in VB, but I know how to do it in Kix Script. You can write a Kix script and use a shell command to run it. If you want to do it using Kix and need help just e-mail me and I will be glad to help you.
Thanks
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.