Set a Printer from the Printers collection as the Default
Version Compatibility: Visual Basic 5
NOTE FROM FREEVBCODE.COM: According to Microsoft, the problem described has been corrected in Visual Studio '97 Service Pack 2 and presumably Visual Studio 6.0 as well. However, this is still good code to have regardless of what version of VB you are running because it shows you how to use Printer API functions and it automatically resets the default printer to what it was when the program started running.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.