I have an Access program that is used by one company with 5 branches and each branch has their own printer with 4 trays.
Their IT made 4 copies of their printer and selected a different tray for each copy.
When I print a report from the Access program, that needs to print on a certain tray, I do the following:
- Save the default printer name.
- Find the specific printer. Ex: if the report should go to tray 2, I find the printer by name, that has the paper source set to tray 2
- I set the default printer to the specific printer, print the report, then set the default printer back to the saved default printer.
This has worked well for many years.
The problem is that now two branches have new printers with 4 trays each. (different brands of printers)
Their IT has set them up the same way as the old ones with 4 copies of the printer.
When I print a report that should go to a specific tray, the report always goes to the default tray.
The only way I can get a report to print to a different tray, is to manually design the report and set the paper source to the correct tray.
The branches with the old printers still work, whereas the branches with the new printers always prints to the default tray.
All the branches are using a copy of the same Access program.
So I would like to change the tray programmatically for each branch, as they use different trays for different reports.
I've tried opening the report in preview and setting the PaperBin. This doesn’t work.
I’ve tried the PrintMgt example by Allen Browne, this also doesn’t work.
Their IT Department can't figure it out.
Does anyone know what has changed in Access for new printers? Or how to get around this problem?
Thanks,
Gail