This action works fine... until the 49th file, then I have a message in the console window (in French):
Vous avez atteint le nombre maximum de fichiers pouvant être ouverts. Vous devez fermer certains fichiers avant de pouvoir en ouvrir ou en imprimer d'autres.
That means: You reached the maximum number of files that can be opened. You must close some files before opening or printing other ones.
What I don't understand because the files are not open!!! It is certainly necessary to empty a variable or a memory somewhere.
Does anybody have an idea?
Thanks in advance
There's a bug in some versions of Acrobat DC that causes the closeDoc method to not work. Try updating to the latest version available. If that doesn't work you'll need to look for a workaround.
Why does you create so many new documents?
Tu ne devrais pas mettre ton email en pseudo : tu vas te faire spammer !
Merci jean-Renaud, j'ai modifié mon "Nom Adobe" mais c'est toujours mon adresse e-mail qui apparaît. Peut-être n'est-ce pas immédiat !!!
I am writing this action for somebody who wants to customize the forms from an Excel database.
So I have an original form with an attached .csv file so for each row I create a new file and I fill the field from these datum then I close the new file.
I though 2 solutions: the one I did and an other one is to generate an array of arrys containing the datum before removing the attached file then save as the file with the datum of the arrays. That should avoid several files open at the same time!
Thanks for your answers.
The second method works very well with the 110 lines of the Excel file. It generates 110 customized forms without any problems.