Hi guys, I am trying to run and save a report in pdf format, but it saves in HTML format.
This is my programming code:
settings = {"path":"C:\\Path", "fileName":"Reporte.pdf", "format":"PDF"}
array = system.report.executeAndDistribute(path="Reporting", project="IgnitionCoreTroubleshooting", parameters={"Name": "Ignition"}, action="save", actionSettings=settings)
do you know where’s the mistake?
thank’s in advance for all the replies.Preformatted text
The only thing I can see is maybe the format portion, it is capitalized. Try it lowercased.
settings = {"path":"C:\\Path", "fileName":"Reporte.pdf", "format":"pdf"}
array = system.report.executeAndDistribute(path="Reporting", project="IgnitionCoreTroubleshooting", parameters={"Name": "Ignition"}, action="save", actionSettings=settings)
I’ve also tried lowercase pdf, but it still doesn’t work.
Try setting the reporting.Data
logger to TRACE on the gateway before running your script (there will be a lot of noise, but it will tell you exactly what the save action is trying to do).
HTML is especially odd as output, because the ‘default/fallback’ format is PDF.