I have 3 printers. How can I set a printer as the default (standard) printer with Xojo-code ?

Maybe possible using declares but not with anything built in to Xojo

Tx Norman.
Is there anybody who knows how to solve this problem with the use of declares ?

disregard. solution was system version dependent.