Re: Switching Printers using form
From: Albert D. Kallal (PleaseNOOOsPAMMkallal_at_msn.com)
Date: 05/08/04
- Next message: Dave the wave: "Re: Referring to calculated field on subform"
- Previous message: Gary: "Re: Menu Bar"
- In reply to: ChrisBat: "Switching Printers using form"
- Next in thread: Tony_VBACoder: "Switching Printers using form"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 18:01:15 -0600
I have a sample application on how to do this.
Note that access XP does have built in the ability to switch printers. So,
while my code *should* work, you do NOT need it in a2002.
You can use:
Set Application.Printer = Application.Printers("HP LaserJet Series II")
So, to save/switch, you can use:
dim strDefaultPrinter as string
' get current defualt printer.
strDefaultPrinter = Application.Printer.DeviceName
' swtich to printer of your choice:
Set Application.Printer = Application.Printers("HP LaserJet Series II")
do whatever.
Swtich back.
Set Application.Printer = Application.Printers(strDefaultPrinter)
If you are using a earlier version then access 2002, then the above will not
work...
you can grab my sample change code at:
http://www.attcanada.net/~kallal.msn/msaccess/msaccess.html
-- Albert D. Kallal (MVP) Edmonton, Alberta Canada pleasenonoSpamKallal@msn.com http://www.attcanada.net/~kallal.msn
- Next message: Dave the wave: "Re: Referring to calculated field on subform"
- Previous message: Gary: "Re: Menu Bar"
- In reply to: ChrisBat: "Switching Printers using form"
- Next in thread: Tony_VBACoder: "Switching Printers using form"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|