Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Professional Scriptcase Services
    Some Customers opinions

    Comment


    • #3
      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.pd f", 'F');
      in the end of the code generated by the pdf.

      Comment


      • #4
        insert into PDF Report -> Layout PDF -> Code

        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)

        Comment


        • #5
          Originally posted by sdanigo View Post
          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.
          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...df-layout/code
          /Giuseppe

          Professional Scriptcase Services
          Some Customers opinions

          Comment


          • #6
            Originally posted by Giu View Post
            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...df-layout/code
            Thank you. This answers my question here....

            http://www.scriptcase.net/forum/show...670-PDF-macros

            Comment

            Working...
            X