10 Replies Latest reply on May 17, 2017 2:26 PM by planteg

    Cannot write pdf to disk - FMPro 16

    cthomassin

      Hi, I'm using Filemaker pro 16 on windows 10. I cannot write a PDF to disk using a script or saving a report without using a script. I have a «full disk» message. I dont encounter this problem with FM13.

        • 1. Re: Cannot write pdf to disk - FMPro 16
          CarstenLevin

          Could you please show your script setup. I am nearly 100% sure it is your file path that is wrong.

          Ready to help:-)

          • 2. Re: Cannot write pdf to disk - FMPro 16
            cthomassin

            Oh boy, I use the french version of filemaker. Check my file path but I tried other paths like ...desktop or an other disk. I mentionned earlier that  I cannot save a report in PDF using the PDF report button in the menu bar.

             

            Thank you for answering so quickly. I appreciate.

            • 3. Re: Cannot write pdf to disk - FMPro 16
              CarstenLevin

              O dear, I managed Dutch today, but that's closer to Danish. Any chance you can select the specific part that is setting the path up ... or make a demo file for me ... the demofile will be in English when I get it even though it is in French at your PC/Mac.

              • 4. Re: Cannot write pdf to disk - FMPro 16
                planteg

                Malheureusement quand vous copiez le contenu d'un script, ce n'est pas du texte, c'est pour cela que l'on ne peut copier par exemple sur le forum. Dans votre dernier message, on ne voit pas le chemin de destination du fichier. En imprimant le script dans un fichier PDF, vous pourriez joindre celui-ci à votre réponse. Pour ce faire, il faut utiliser l'éditeur avancé, il y a un lien au haut de la boîte d'édition.

                 

                Autre raison pour avoir cette erreur: si le fichier PDF est ouvert dans un lecteur, alors FileMaker ne peut l'écraser.

                ________________

                 

                Unfortunately when you copy the contents of a script, that not text, this is why you can't copy for example on the forum. In your last message, we don't see the destination path for the file. Printing the script to a PDF, you may then attach it to your post. To do this, you need to use the advanced editor, there is a link at the top right of the editor box.

                 

                Another reason that may explain this error, is the PDF file is open in a reader, the FileMaker can't write the file over.

                • 5. Re: Cannot write pdf to disk - FMPro 16
                  cthomassin

                  Quant à la possibilité que le fichier soit simultanément ouvert dans une autre application, ce n'est pas le cas ici. Le code fonctionnait sans encombre dans FM13 et FM14. Dans FM14 les PDF générés ont commencé à se corrompre depuis la semaine dernière. C'est la raison pour laquelle j'ai mis à jour pour FM16 mais la seule solution que j'envisage c'est de revenir à FM13 qui fonctionne parfaitement. En passant, j'ai les trois versions installées sur mon poste. Pourrait-il y avoir un conflit ?

                   

                  My file is not simultaneously used by an other application. As I wrote earlier, I can not even save a PDF file with the pdf button available in the menu bar. Eveything works fine in FM13 and FM14. I should say that the three versions 13, 14, and 16 are installed on my computer.

                  • 6. Re: Cannot write pdf to disk - FMPro 16
                    CarstenLevin

                    Bonjour, Hi again,

                     

                    I think the problem is here, you should set the entire paths as a calculation put into a $variable and then put the variable into the filepath

                    file.png

                     

                    Consider using get(desktoppath) or get(documentpath) as a part of the path.

                     

                    Best regards


                    Carsten

                    • 7. Re: Cannot write pdf to disk - FMPro 16
                      cthomassin

                      Maybe,how can we explain why every works fine in FM14 and FM13. As I wrote earlier, I can not even save a PDF file with the pdf button available in the menu bar that used no script.

                      I'll try your solution.

                       

                      Thanks.

                      • 8. Re: Cannot write pdf to disk - FMPro 16
                        planteg

                        Dans FM14 les PDF générés ont commencé à se corrompre depuis la semaine dernière.

                         

                        That reminds me of an issue that occurred when FM 15 was released, which incorporated a new PDF engine. The same new PDF engine was also included in the last release for FM 14. The issue was that some PDF were corrupted. The bug has been corrected in FM 15, I don't recall if is has been in FM 14.

                         

                        Regarding the advanced editor, see:

                        advancededitor.jpg

                        Back to you issue, did you try the same in another database ?

                        • 9. Re: Cannot write pdf to disk - FMPro 16
                          cthomassin

                          Oui ça ne fonctionne pas, même avec une solution de démarrage fournie par le fabricant.

                          • 10. Re: Cannot write pdf to disk - FMPro 16
                            planteg

                            So it doesn't work in another file . What bugs me is when you do a Save records as PDF (I guess or saving a report without using a script) , you can specify the destination and file name, then that should work. Just tried it and was successful.