I want to save a report automatically. now I have written this code, but I still get a pop up to select a path. does anyone know what I’m doing wrong?
report = event.source.parent.getComponent(‘Parameter viewer’)
d = system.date.format(system.date.now(),“MM-dd-yyyy hh-mm-ss”)
reportBytes = report.getBytesPDF()
filepath = (“S:\Factory\Reporting\Ignition”)
filename = system.file.saveFile (str(‘para-’+d))
if filename != None: