You must have something else going on, and may need to call tech support to see what’s happening.
I just tried the following script in 7.6.4
job = system.print.createPrintJob(event.source.parent)
print dir(job)
print "Printer name is: ",job.getPrinterName()
job.setPrinterName("foo")
print "After setting, printer name is: ",job.getPrinterName()
My output was:
['__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__', '__eq__', '__getattribute__', '__hash__', '__init__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__unicode__', 'bottomMargin', 'class', 'equals', 'fitToPage', 'getBottomMargin', 'getClass', 'getLeftMargin', 'getOrientation', 'getPageHeight', 'getPageWidth', 'getPrinterName', 'getRightMargin', 'getTopMargin', 'getZoomFactor', 'hashCode', 'isFitToPage', 'isShowPrintDialog', 'leftMargin', 'margins', 'notify', 'notifyAll', 'orientation', 'pageHeight', 'pageWidth', 'print', 'printerName', 'rightMargin', 'setBottomMargin', 'setFitToPage', 'setLeftMargin', 'setMargins', 'setOrientation', 'setPageHeight', 'setPageWidth', 'setPrinterName', 'setRightMargin', 'setShowPageFormat', 'setShowPrintDialog', 'setTopMargin', 'setZoomFactor', 'showPageFormat', 'showPrintDialog', 'toString', 'topMargin', 'wait', 'zoomFactor']
Printer name is: None
After setting, printer name is: foo
The script above was my complete script – no special imports.