Script to rename report in Preview

Hi

I have a customized report ZSORDERS

I have a script that renames the pdf generated by report (SO#) and saves it in destination.But I need to modify the script so that when the user opens the report in preview the report is renames and the user simply saves the report.Can this be achieved through workflow.

Here's the Code for IMPRIME

If ETAT = "ZORDERS" Then

(Code here to get order num)

Next

FICHIER = "\\Servername\"+SONNUM+".pdf"
Endif

Return

Parents Reply Children
No Data