Printer Switching

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application that needs to switch between printers programatically.
In effect a workstation could have up to 3 printers on it. One for reports,
one for big labels and another for smaller labels.

The MS Access 2000 application in place now uses OpenPrinter, SetPrinter and
GetPrinter in the winspool.drv libraray to perform this task and it works on
Win98, Win2K and WinXP client machines.

Unfortunately, our attempt to convert the app to Access 2003 is showing that
these functions do not work in that environment. They work, but not
consistantly. The Access 2K version worked very consistantly and switched
printers on demand, via the code, with no screw ups.

Any help in resolving this mystery would be greatly appreceiated.

Thank you,
Herb Stull
 
When you create a report, you can force the report to use a specific printer
in the Print Setup dialog box of the report in design view.
 
Rick, thanks for the reply but I don't want to tie the report to one specific
printer. The app runs on many different machines, each with it's own unique
names for the various printers.

I need a way to switch the to desired printer programatically. My original
post provided details of how we do that now (which is failing under Access
2003) and what I'm looking for is alternate ways to do the printer switching
in code that will work under Access 2003.
 
Back
Top