Hi,
I am using following code to print report.
Reportpath = self.view.custom.ReportName
project = "ProjectName"
settings = {"primaryPrinterName":'MyPrinter', "copies":1}
system.report.executeAndDistribute(path=Reportpath, project=project, action="print", actionSettings=settings)
I am getting Error: Could not print report to primary printer.
My primary printer is also installed on Gateway and is working. What could be the cause?
Thanks
Working for a user logged into the server is not sufficient (a background service on a server is independent of any desktop user), as background services generally run as an isolated user. For a network printer, your background service may need additional privileges. It may also need to have its default printer set, separately.
we have operator screens and each screen has this printer installed. Just curious what could prevent it from printing. If I print a PDF document from desktop, it would print just fine. However through ignition its giving the error
You've tagged this as Perspective. Perspective clients are web browsers, not local applications. So the printer settings on client are utterly meaningless to the behavior of any scripted print operation. (All Perspective scripts run in the gateway server, in that background service, and therefore require printers to be set up for the gateway to use.)
To print a report to a locally-defined printer requires either downloading the PDF and letting Adobe print it, or opening in a browser tab to let the browser's native PDF support print it.
Web browsers simply do not permit Ignition direct access to a local printer.
Can allow OpenInTab open in embedded view or in same tab? we have Kiosk mode, so if we go to OpenInTab, we cant move back.
I haven't really played with Kiosk mode.