UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Changing Default Printer With Vba, Access 2016    
 
   
dhapp
post Sep 23 2019, 12:48 PM
Post#1



Posts: 1,152
Joined: 17-November 03
From: Hamburg, NY


Task: Print appointment cards using a particular printer (not the default printer).
Solution (up until today):
CODE
Set prt = Application.Printer   'Save the current setting of the default printer in a variable named prt.
Application.Printer = Application.Printers("\\KAZSRV\Canon MG6200 series Printer")     'Set default printer to a different printer.
         Code for printing appointment cards.
Set Application.Printer = prt     'Restore original default printer setting
This worked just fine for several years.
On Friday 9/20 the office computers were replaced with Windows 10 machines. The code no longer changes the default printer.
Under Printers and Scanners, the box Let Windows manage my default printer is unchecked.
Any ideas?

--------------------
Doug
When the eagle is away, the crow says, "I am the eagle."
Go to the top of the page
 
kfield7
post Sep 23 2019, 01:15 PM
Post#2



Posts: 1,003
Joined: 12-November 03
From: Iowa Lot


This might help.
Go to the top of the page
 
dhapp
post Sep 23 2019, 01:25 PM
Post#3



Posts: 1,152
Joined: 17-November 03
From: Hamburg, NY


Yup!
That did it!
Thanks very much.
Doug

--------------------
Doug
When the eagle is away, the crow says, "I am the eagle."
Go to the top of the page
 
arnelgp
post Sep 23 2019, 01:26 PM
Post#4



Posts: 1,428
Joined: 2-April 09
From: somewhere out there...


do you have the printer driver reinstalled on your pc.

--------------------
Never stop learning, because life never stops teaching.
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    16th October 2019 - 02:49 AM