-
I have my VB application to show the Common Dialog box for the printer, but when a user enters a number of copies (e.g., 2), that number sticks with that box so that the number (2) shows up from then on as the number of copies whenever that dialog box appears. That is true when I even call the printer later in Word and other programs. In fact, I have to go to the Printers folder in Settings of Windows to reset the number to 1. Any suggestions?
Thanks.
-
PrinterDefault Property
You need to set the CommonDialog Control's PrinterDefault property to False else it will write the changes that the user makes to the Print dialog box to either Win.ini or the Registry depending on your OS.
Code:
CommonDialog1.PrinterDefault = False
CommonDialog1.ShowPrinter
Good Luck! :) ;)