Hi, I am programming a script for a button, which prints an object, for example a gauge. It is the first time that I work with this print function:
job = system.print.createPrintJob(event.source.parent.getComponent(self.getSibling(‘Gauge’)))
job.print()
But it throws me the following error:
AttributeError: ‘com.inductiveautomation.ignition.common.script.Imm’ object has no attribute ‘print’.
I’ve been searching the forum but couldn’t find a solution. The tree is the following:
Thanks for any help you can give me.