Call setPrinter function