change default printer by code

checoturco

Registered User.
Local time
Yesterday, 16:25
Joined
Oct 17, 2005
Messages
76
Hi all,


It´s possible change the default printer by vba code?
i have a button that when user press, i wanna assign a specific printer for that action and when the report already is printed, i wanna change the default printer for the printer he has before.
i run this code but it´s wrong because we can´t assign a value to "device Name" ( I guess...)

Form.Printer.DeviceName = "printer_name"

tks all guys

checoturco
 
It Really WORKS !!!

tks a lot

checoturco
 

Users who are viewing this thread

Back
Top Bottom