This is the code:
cd1DescPrt.ShowPrinter
cd1DescPrt is a control dialog box on the form.
Main Topics
Browse All TopicsI have a VB6.0 SP6 app in which I use a ShowPrinter to allow the user to select the printer to direct output to.
It works great except for the fact that the users just informed me that not only does it re-direct the current output to the selected output device but also makes the new output device the default printer.
Is there a way (using showprinter or something else) to provide the ability to re-direct output without changing the default printer?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
http://support.microsoft.c
see if this helps
if the above doesn't work then try this
http://support.microsoft.c
hi
I tried the the simplest code of using the set printer but that does not work. I looked up some KB articles and it seems that won;t work after all. All articles did tell to use the KB 266767 of Microsoft to attain the same.
So you may go ahead and use that info and get the default printer name first then print the stuff on the specified printer and then set the default printer back.
That is the only soln i m able to think right now.
Business Accounts
Answer for Membership
by: pra_kumar03Posted on 2004-11-05 at 11:57:51ID: 12508111
Can you provide the code that you have put.