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

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.

system.print.createPrintJob is a Vision-scoped function.

Thank you very much YF129701 for making me notice this point that I did not know. So, in Perspective I can only print with the reporting module?