Printer not visible to Gateway

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())

I was able to resolve the problem. There were two issues:

  1. Ignition Log On User
    On my windows 10 device, where the Gateway is hosted, I had to go to Services. Then on Ignition right click and select properties. Go to Log On and change the Log on as to the desired user with the printer accessible.

  2. Printer name
    The printer required extra back-slashes, \, in the name. For example, if the printer name appears as \\PrinterService\Brother Printer 1 then in the script set printerName = "\\\\PrinterService\\Brother Printer 1".