I have a Gateway running on my local computer and I am attempting to print a report.
After running the following code on the gateway, the printer I am looking for is NOT listed. But if I run the code on my local device the printer IS listed. How do I add the printer so it is visible to the Gateway?
from javax.print import PrintServiceLookup as PSL
logger = system.util.getLogger("myLogger")
printerList = PSL.lookupPrintServices(None, None)
defaultPrinter = PSL.lookupDefaultPrintService()
for printer in printerList:
logger.info(printer.getName())
logger.info('------------------------')
logger.info('Default printer : ' + defaultPrinter.getName())