Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Brisbane, Queensland, Australia
    Thanked 0 Times in 0 Posts

    Select Printer Driver via code (Acc 97 sr2 on 95b)

    I have searched for this, but I need to be spoon fed regarding coding.

    One of the printer drivers we have is a fax driver. Is there a way to set code for a button so that the fax driver is selected, the report is "printed", and then the default printer is reset? There is only one fax driver and it has the same name on all machines.
    "Heading for the deep end"

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Sacramento, California, USA
    Thanked 1 Time in 1 Post

    Re: Select Printer Driver via code (Acc 97 sr2 on 95b)

    You can do it using Windows API calls. You don't need to change the default printer, you just specifiy the print device you want to use. There is code in several places on the web as well as here in the Access forum. Do a Lounge search on PrtDevMode and you'll find plenty of discussion on this.

Posting Permissions

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