Report module: Save as PDF w/params and settings

Hello there,
i’m facing an issue: i’d like to save a Report into a specific location when a button is pressed.

that’s the script in the button:

# Executes and distributes the report to save a PDF
Data =, 'dd-MM-yyyy')
Filename = str(Data) + "_Report_MagazzinoAutomatico.pdf"

# Raccolgo i filtri
Diametro = str(event.source.parent.getComponent('Diametro').selectedLabel)
Lega = str(event.source.parent.getComponent('Lega').selectedLabel)
Lunghezza = str(event.source.parent.getComponent('Lunghezza').selectedLabel)
Smusso = str(event.source.parent.getComponent('Smusso').selectedLabel)
Impianto = str(event.source.parent.getComponent('Impianto').selectedLabel)
Data = str(event.source.parent.getComponent('Data').selectedLabel)

# Imposto i vari parametri della query ed il path del file da generare
parametri = {"Diametro":Diametro, "Lega":Lega, "Lunghezza":Lunghezza, "Smusso":Smusso, "Impianto":Impianto, "Data":Data }
settings = {"path":"C:\\", "fileName":Filename, "format":"pdf"}

# chiamo la funzione Report tramite nome e nomeprogetto, inviandole i parametri ed il path"Magazzino Automatico", project="Magazzino_Automatico", parameters=parametri, action="save", actionSettings=settings)

I get no errors if i press the button, but no Report is generated.

Also, i’ve prepared a Report with all those params, tell me if you need any screenshots.

Someone can help me?

Thank you.

here are some screenshots:
1- How i set the default string value to EMPTY
2- the query with all those parameters
3- the result of the query with default empty values

Do note that the path will be on the gateway, not on the client where you press the button.

Perhaps you can try an alternative method, like sending it via mail (just as a test)?

1 Like


The save action puts the file in the gateway folder. I thought it was on the local machine.

Thank you.