209210211212213214215216
if(name == null){ throw new IllegalArgumentException("null printer name"); } this.peer = peer; printer = name; settings = new PrintDocument().get_PrinterSettings(); settings.set_PrinterName(printer); }