Export FPReport to PDF doesn't work for the second time lazarus / 21-General ---------------------------------------------------------------------- mangakissa · 2021-02-10 08:53 Lazarus 2.10 is finally released with FPC 3.2 which make it easier to use pas2js and fpreports. The last package I've installed in the IDE. When I use the example of this FAQ it works at the first time. It creates an export to PDF with the same name as the project. But when I run the code for the second time an error occurs with the message 'Paper name A3 already exists'. But I use 'A4' as default. Even when using this line of code will not export the report to PDF Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i RptExporter.FileName := 'myexample.pdf';How can I use the code several time by using the same export name without checking and deleting the original file?