How to save a PDF on the server with a variable name ?

Hi,
In a PdfReport application I would like to be able to change the path and filename of the generated PDF at run time. Is this possible ?

Thanks

Sylvain

There are macros for this. Look for pdf in webhelp macros, im not on a PC to give you a direct link sorry.

Hi Giu
thanks,
I’ve tried with sc macro but it doesn’t seems to work.
I’ve finaly done it like that:

$this->Pdf->Output("…\dossier\".{numFacture}."\facture.pdf", ‘F’);

in the end of the code generated by the pdf.

insert into PDF Report -> Layout PDF -> Code

sc_pdf_output([Filename].".pdf","F");

Remember that the path in [Filename] is writeable for the application.
Another hint, if it does not work on your developing envirement, try it on your production enviremont (took me a whole week omg)

[QUOTE=sdanigo;31591]Hi Giu
thanks,
I’ve tried with sc macro but it doesn’t seems to work.
I’ve finaly done it like that:

in the end of the code generated by the pdf.[/QUOTE]

Documentation is one of the things NetMake should improve.
As Eric sais, there are a lot of macros for PDFReport but is not under ScriptCase macros in webhelp, but under code in PDFReport webhelp.
http://www.scriptcase.net/docs/en_us/v8/manual_mp.htm#report-pdf-applications/report/pdf-layout/code

[QUOTE=Giu;31974]Documentation is one of the things NetMake should improve.
As Eric sais, there are a lot of macros for PDFReport but is not under ScriptCase macros in webhelp, but under code in PDFReport webhelp.
http://www.scriptcase.net/docs/en_us/v8/manual_mp.htm#report-pdf-applications/report/pdf-layout/code[/QUOTE]

Thank you. This answers my question here…

http://www.scriptcase.net/forum/showthread.php?7670-PDF-macros