I'm maintaining an aged legacy application written in Delphi.
I'm experiencing something weird in a report made by Fastreport (ver 5.5.6) and Delphi (XE5).
There is a situation in which the exe will be triggered with some input parameters to export the expected document to PDF or Image to be used on a website or somewhere.
The specific report that I'm talking about has some fields that are formatted by Pascal script to 24-Hour format or AM/PM to meet each customer's needs. (Dynamic report).
Everything is perfect in the report preview, the printed report, and export to PDF, image, or Excel in the visible mode of the application(normal usage of the application).
but those formats don't apply in invisible mode, those fields come up with the default format of the server.
I checked the SQL Server result and the application report preview in visible mode and everything is fine but on the same machine when it executes in invisible mode it doesn't work.
I doubted those Pascal scripts (OnAfterData event has been used), so I put some log functions and I realized those Pascal scripts are running, I can verify they are running each time but don't affect the final exported file.
Does anybody have the same experience, Any advice?