r1313: Split up OpenPrinterEx into functions to handle opening printers and print