Announcement

Collapse
No announcement yet.

EXPORT to PDF Not working for me

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

  • EXPORT to PDF Not working for me

    I migrated my v6 projects to v7 and have had several problems, some have been fixed, some I've worked out for myself, but this one seems to be a mystery. I'm having trouble exporting to PDF with the toolbar buttons; I'm using the new PDF functionality in the applications setting and then (use old PDF exporter Yes/no) I put no.

    What happens is, it produces 2 files in the tmp folder one is the html of the grid I'm converting to PDF and the other is a log file. The error that comes up is (The requested URL /samples2/_lib/tmp/sc_pdf_20130218145225_966form_pdf.pdf was not found on this server.) If I try to produce the PDF on my development machine it works fine. It obviously is looking at the correct folder (tmp) but doesn't produce the PDF from the html file.

    The error above is from the samples project, I tested this just in case I had done something in my project that had made the error appear.

    Any help would be appreciated as this is one of the main functions I needed.

    Don Attwell

  • #2
    Hi Don,

    I had that problem earlier, pls look at that thread, sure your problem will be solved with that solution, for small easy exports:

    http://forum.scriptcase.net/showthre...-export-to-PDF

    Best regards

    Eric
    Last edited by EricB; 02-18-2013, 12:57 PM.

    Comment


    • #3
      Originally posted by EricB View Post
      Hi Don,

      I had that problem earlier, pls look at that thread, sure your problem will be solved with that solution, for small easy exports:

      http://forum.scriptcase.net/showthre...-export-to-PDF

      Best regards

      Eric
      Thanks Eric
      I gave it a go with the project I was having the problem with but it's still the same although I got this error instead (Error creating PDF file, contact technical support.) so I will try it with a new project to see if it may be something I've done. Although, it is a bug apparently so there must be a fix on it's way.

      Thanks again for the post, as you can see this is the first time I've needed to post, it's was nice to get such a fast response.

      Don

      Comment


      • #4
        Hello Don,

        Was it on ScriptCase 6 or 7?

        regards,
        Bernhard Bernsmann

        Comment


        • #5
          Hi Bernhard,

          I think he is talking about V7, cause he wrote that he had migrated from V6 to V7 ...

          BR

          Eric

          Comment


          • #6
            Hello Eric,

            Thanks, I only read his post on the Activity Streams and missed the first post.

            The issues regarding exporting PDFs were fixed, and will be out on our next release (that should come out tomorrow).

            regards,
            Bernhard Bernsmann

            Comment


            • #7
              Hi Bernhard,
              Scriptcase was updated today so I added an (export to PDF) button to a grid and uploaded it to the server but still no go; so I uploaded the common libraries and common files, (massive file size) and still not working, it still produces the 3 other files in the tmp folder .css, .html, .log but no .PDF. so that would indicate that it's looking at the right directory. The wkhtmltopdf seems to be operating ok as no error is appearing and if you try and download it it does download a pdf but with zero file size and when you hit view you get this (The requested URL /_lib/tmp/sc_pdf_20130219212403_799_grid_grading_report_stud ent.pdf was not found on this server.) I also have NO to (use old PDF exporter) in the application menu.

              Any thoughts.

              Don


              Wed 20/02/13
              I have just spent an hour or two changing back to v6, I have my main project in 3 Colleges on beta test at the moment and can't be doing with all of the bugs, I think I'll wait a couple of months.

              Thanks Eric and Bernhard for your help.

              Don
              Last edited by donattwell; 02-20-2013, 01:47 PM. Reason: Gone back to v6

              Comment


              • #8
                Originally posted by donattwell View Post
                Hi Bernhard,
                Scriptcase was updated today so I added an (export to PDF) button to a grid and uploaded it to the server but still no go; so I uploaded the common libraries and common files, (massive file size) and still not working, it still produces the 3 other files in the tmp folder .css, .html, .log but no .PDF. so that would indicate that it's looking at the right directory. The wkhtmltopdf seems to be operating ok as no error is appearing and if you try and download it it does download a pdf but with zero file size and when you hit view you get this (The requested URL /_lib/tmp/sc_pdf_20130219212403_799_grid_grading_report_stud ent.pdf was not found on this server.) I also have NO to (use old PDF exporter) in the application menu.

                Any thoughts.

                Don


                Wed 20/02/13
                I have just spent an hour or two changing back to v6, I have my main project in 3 Colleges on beta test at the moment and can't be doing with all of the bugs, I think I'll wait a couple of months.

                Thanks Eric and Bernhard for your help.

                Don
                Hello Don,

                Try to do a manual update and see if the issue continues.

                See: http://helpdesk.scriptcase.com.br/kb...e-scriptcase-7

                regards,
                Bernhard Bernsmann

                Comment


                • #9
                  Hi Bernhard
                  Thanks for getting back, I've just downloaded 7.0.002 and installed over the files in the scriptcase folder; then deployed the samples applications and still no go. Have you got it to work? if so it must be something I have done or not doing.

                  Don

                  Comment


                  • #10
                    Originally posted by donattwell View Post
                    Hi Bernhard
                    Thanks for getting back, I've just downloaded 7.0.002 and installed over the files in the scriptcase folder; then deployed the samples applications and still no go. Have you got it to work? if so it must be something I have done or not doing.

                    Don
                    Hello Don,

                    A few of our customers are able to generate PDFs, while others aren't. It seems that the problem continues to some developers. I'm contacting our bugs team to find a solution to the issue.

                    Are you able to generate PDFs from DEVELOPMENT environment? If you are, then the problem is probably being caused due to deployment. To prevent that, go to /scriptcase/tmp and clear the folder. After that, deploy your project again generating the ZIP file, and make sure to deploy SC libraries. After that, try to deploy your project on your development environment to see if the issue contiues.

                    regards,
                    Bernhard Bernsmann

                    Comment


                    • #11
                      Hi Bernhard
                      I've been doing a bit of experimenting and it still doesn't work but I have found out something that may be interesting to some developers.
                      1) I tried your last suggestion but this failed.
                      2) I downloaded the Auto-install version 7.0.0003 and installed it in Win 7 running in VirtualBox, this also failed, but the speed different when working with the samples project was amazing, it is working with the SQLite db which I don't normally use I use Mysql running in WAMP.

                      Running in virtualBox does isolate the program from all of the other stuff running on my, what I thought was a very high spec machine so I may change the license to VirtualBox (Win 7) or even Ubuntu.

                      Anyway I think at this point I have exhausted all of the possibilities and will have to wait for a bug fix.

                      Thanks again for your knowledge and help.

                      On another note I would like to share some of the things I've been able to achieve with this wonderful piece of software "Scriptcase" even with it's little bug's, which get sorted eventually; you can do some amazing things at a very high pace, as you may know I'm new to using this forum; although I've had the software from v4 I have never felt the need before but now I'm hear I'm finding it very good.

                      The things I would like to share are laying out forms in various ways and producing printable templates plus building an interface and menu that works well in an iPad or on a PC, my question is where do I post this info? can I make an album and put images up there for people to see and can they be linked to the images from a post or do I store them somewhere else.

                      I look forward to your answer.

                      Thanks

                      Don

                      Comment


                      • #12
                        Hello Don,

                        I have just reported that the issue continues to our bugs team.

                        You can create a topic at Code Examples or Hot Tips and post those images using our forum upload, or if you find it is best to upload in some image hosting web site, you can just point the link. No problems there.

                        Thanks also,
                        Bernhard Bernsmann

                        Comment


                        • #13
                          I have the same bug still on 7.02. Export PDF do not still works. Is it going to be fixed ?
                          Bye Giovannino

                          Comment


                          • #14
                            Originally posted by giovannino View Post
                            I have the same bug still on 7.02. Export PDF do not still works. Is it going to be fixed ?
                            Bye Giovannino
                            Hello Giovannino,

                            Please update your ScriptCase to our latest release 7.00.003. We have a few customers that aren't experiencing the issue anymore on 7.00.003.

                            regards,
                            Bernhard Bernsmann

                            Comment


                            • #15
                              Hello again,

                              I just got back an reply from our bugs team. The issue was happening because a few files at prod/third/wkhtmltopdf were corrupted. Please check if there are any files under prod/third/wkhtmltopdf on your deployed project. If there isn't, please let me know. If there is, set read and write permission to this and to the temporary files folder on your deployed project (probably /tmp).

                              regards,
                              Bernhard Bernsmann

                              Comment

                              Working...
                              X