Mike,

You have to be sure that you ar using the latest kix version. 4.0.2

Then you must use the next code

code:
 if setdefaultprinter ("printer name") = 0
? "Set default printer to printer name..."
endif

Don't use the sharename of the printer but the printer name itself.

Greetz AukeB

_________________________
Greetz AukeB