Hi,
I have 2 applications The first is a Master/Detail form application and the second a Blank application.
The first allows you to select records from detail and the second takes the records selected by the user and creates an xlsx file using PHPExcel.
At the moment both applications works.
Now I have added one more functionality to the first application. The goal is to send an email to a specific user attaching the excel file that created the blank application.
This is already done by the application. The problem I have is that if I run the master/detail application the first time, it creates the xlsx file, but when it tries to send the email it shows an error message indicating that it does not find the file created by the blank application.
If I run the application a second time and reselect the same records, then it finds the file and does not show the error message.
Therefore I have seen that the file is created until I exit the Master/Detail form. and not at the end of the application blank.
I do not know if I can explain myself. I do not speak a lot of english.
These are basically the steps executed by the apps. [LIST=1]
- [B]Why the Excel file was created until the form application ends and not at the moment when the blank application ends?[/B]
- [B]What do I have to do so that the excel file can be created and saved in the folder before the routine that creates and sends the mail is executed?[/B]
Thank you very much in advance
Aldo.