PdfReport naming

I produced a fully functionnal report using pdfreport. All my work was OK until … I tried to force the default name of the document that was produced by Scriptcase.
According to the documentation, I used the sc_set_pdf_name macro.
I put the following line sc_set_pdf_name = “aaa.pdf”; in the OnScriptInit section of the pdfreport.

The report is generated in the tmp directory but the default name of scriptcase is already used.

What am I doing wrong? Does anyone solved this problem yet?

I found the trick.
Pdf naming function can only be used in grid or chart application.
If you want this kind of functionnality in Report Rdf application, you need to use destination property of the report (download or server).
You can then specify the kind of naming rule you want to use.

Hi bruchpilot,
can you please explain what you intend with
“you need to use destination property of the report (download or server).
You can then specify the kind of naming rule you want to use.”
Thank You

Found what you’re talking about, and it works!