Announcement

Collapse
No announcement yet.

PDF filename

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

  • PDF filename

    Hi!

    Is it possible to give/set pdf file name by our self? Now it is generating file with file name which is too long.
    I didn't find any settings to set it in the pdf application type.

    Thanks!
    Regards,

    Ishwor

  • #2
    Re: PDF filename

    I would like to know how to do this too. Need to set pdf file name to a variable.

    Thanks
    Latest version of Scriptcase updated regularly. Hosted on my own Cpanel server running php 5.4x and Centos. Use latest version of Firefox for development browser.

    Comment


    • #3
      Re: PDF filename

      Lets request this feature to Netmake then . I have done it already.
      Regards,

      Ishwor

      Comment


      • #4
        Re: PDF filename

        Thanks Ishwor.
        Latest version of Scriptcase updated regularly. Hosted on my own Cpanel server running php 5.4x and Centos. Use latest version of Firefox for development browser.

        Comment


        • #5
          Re: PDF filename

          thats cool ishwor.
          i want that features also.
          for the meantime i think it is
          possible to generate pdf in scriptcase and rename it before save.haha

          regards,
          ghulma
          Regards,
          Ghulma

          Comment


          • #6
            Re: PDF filename

            [quote author=ghulma link=topic=3943.msg11155#msg11155 date=1308652842]
            thats cool ishwor.
            i want that features also.
            for the meantime i think it is
            possible to generate pdf in scriptcase and rename it before save.haha

            regards,
            ghulma
            [/quote]

            Yes, its possible to rename before saving it as you said. I said the same to my client but he wouldn't go for it .

            The feature would be good addition.

            Let's wait and see.
            Regards,

            Ishwor

            Comment


            • #7
              Re: PDF filename

              The solution we found for this is to use the sc_pdf_output() Macro.

              Just definde a filename, which is passed to the report application as parameter, then in Code use
              Code:
              sc_pdf_output([myFilename],"F")
              to save the document to the server or
              Code:
              sc_pdf_output([myFilename],"D")
              to download a named file.

              Comment


              • #8
                Re: PDF filename

                tnx KdoubleU.
                Regards,
                Ghulma

                Comment


                • #9
                  Hi People
                  i try to use sc_pdf_output([myFilename],"D")

                  but it doesn't work.

                  the way i found to change the Filename in run-time
                  is:

                  $this->nm_path_pdf = 'name.pdf';

                  any suggestion about how to work with sc_pdf_output

                  i'am using ScripCase 6.00.0039

                  Comment


                  • #10
                    Hello jjhermosillo,

                    Please contact our support regarding this issue. Our chat is active on workdays from 8:00am to 6:00pm, and our ticket system is always available.

                    regards,
                    Bernhard Bernsmann

                    Comment


                    • #11
                      Is there someone who managed to get it working?

                      Tried to set the sc_pdf_output($Name.".pdf","D"); makro in PDF Report -> Layout PDF -> Code.

                      1. It taked a really long time to generate.
                      2. The filename is set, but it is set only to a part of $Name and the ".pdf" is lost .
                      3. The generated pdf is missing the details section.

                      What I am looking for is a way to set the name of the file, even it is saved, mailed or only shown in the browser in the normal PDF Report -> Events section.

                      Also tried the suggested solution: $this->nm_path_pdf = 'name.pdf';
                      Has no effect ...

                      Someone having ideas???

                      BR

                      Eric
                      Last edited by EricB; 04-03-2013, 02:56 AM.

                      Comment


                      • #12
                        Coming back to this topic, I can say, I managed to change the name of the file which is saved on the server.
                        sc_pdf_output([Name].".pdf","F"); makro in PDF Report -> Layout PDF -> Code is renaming the file

                        Sounds nice, but now the file which is generated is corrupt and unreadable ...

                        Anyone having the same problem or an idea for a solution?


                        P.S. do not know what the problem was, I renewed the pdf-layout part, and it is working now ...
                        Last edited by EricB; 02-01-2014, 06:55 AM.

                        Comment


                        • #13
                          Originally posted by kwittig View Post
                          The solution we found for this is to use the sc_pdf_output() Macro.

                          Just definde a filename, which is passed to the report application as parameter, then in Code use
                          Code:
                          sc_pdf_output([myFilename],"F")
                          to save the document to the server or
                          Code:
                          sc_pdf_output([myFilename],"D")
                          to download a named file.

                          Hi! I'm reading this post.
                          Can you please explain where I must write that macro?
                          [myFilename] is a variable?
                          I'm stopped with this issue, and found this thread. Can you please help me?
                          Thanks in advance.

                          Comment


                          • #14
                            Originally posted by hikiboy View Post
                            Hi! I'm reading this post.
                            Can you please explain where I must write that macro?
                            [myFilename] is a variable?
                            I'm stopped with this issue, and found this thread. Can you please help me?
                            Thanks in advance.
                            based on context (I didn't readed the thread), onApplicationInit is where macro should be writed.
                            Yes [variable] are "globals" variables.
                            /Giuseppe

                            Professional Scriptcase Services
                            Some Customers opinions

                            Comment

                            Working...
                            X