Results 1 to 2 of 2

Thread: CommonDialog1.copies

  1. #1
    Guest
    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.

  2. #2
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987

    Thumbs up 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!
    {Insert random techno-babble here}

    {Insert quote from some long gone mofo here}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width