I would like to autosave a report to a database to be read back later from various clients.
This code works great but its save as a PDF on the gateway.
d=system.tag.read("Kiln1/StartUp/K1 ChargeNum")
path="StartUp_K1_",d.value
load=system.tag.read("Kiln1/History/SaveStartupK1")
if load.value == 1 :
settings = {"path":"D:\KilnReports\K1", "fileName":path, "format":"pdf"}
system.report.executeAndDistribute(path="StartUpK1", project="Kiln_control", action="save", actionSettings=settings)
system.tag.write("Kiln1/History/SaveStartupK1",0)