Originally Posted by
ItsMe
I would get a list of available printers from the machine you are trying to print from. I know what you mean about the port name matches, etc. I have run into issues like this previously. Bottom line, hardcoding a printer name can be tricky and it may be worth the extra work to dynamically code it. Hardcoding the name seems to work best when you use a port name that is listed in AD and the print job is sent to a server on the network not to the printer directly.
Some reference
http://msdn.microsoft.com/en-us/libr.../ff821394.aspx
My preference is to clear all of the printer settings from the report, like printer name, and manage where the print job goes via VBA. Something like this but maybe using more dynamic code by first iterating through avaliable printers.
http://social.msdn.microsoft.com/For...orum=accessdev
Looks like the simple following code worked! Way better than counting on the Access dialog box.
Code:
'Set printer
Set Application.Printer = Application.Printers("HP Color LaserJet 3600")
'Print the report
DoCmd.RunCommand acCmdPrint