472,138 Members | 1,677 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,138 software developers and data experts.

Easy way to Change default Printer in vb6

Private Sub Command1_Click()
'change the name of your printer from the printer collection
Shell "RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n ""Microsoft XPS Document Writer"""
End Sub
Oct 23 '20 #1
0 3434

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by goJoe | last post: by
1 post views Thread by Bharat Parekh | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.