Hi there,
I am using the following code to attempt to print a report (using its default parameters) and I keep getting this error. I do not know what’s causing it. I can’t find any examples for the “print” action for the execute and distribute scripting function in the manual, so I’m not 100% sure whether I’m doing it correctly.
packList = event.source.parent.getComponent("power_table").data.getValueAt(row, "PackList")
datestr = str(event.source.parent.getComponent("power_table").data.getValueAt(row, "Ship Date"))
printer = event.source.parent.getComponent('printer_dropdown')
settings = {"primaryPrinterName":printer,"copies":1 }
_parameters = {"PackListNo":packList, "Date":datestr}
system.report.executeAndDistribute(path = 'PackList',
project = 'Our_Project_Name_',
action = 'print',
actionSettings = settings)
I’ve verified that the printer name is correct, the project name is correct, and I’ve tried passing the date as both a date object and a string with no effect.