Hi guys,
I found problem when i was trying to send report via email automatically.
Before sending email, i need to check whether report has Output or still it is under process. Currentrly i have set wait time of 10 sec. But if there is not any file generated in assigned folder after 10 sec then there are two chances 1) Report dont have any ouput. 2) Report is still under process.
There is not any inbuilt function stating this problem. I want to generate exact error message by coding. plz help.
Regards
mahESH
0
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
but if a report is not processing only & which takes too much time to execute then i just want to know by coding dat still report is executing or it has no output?
Mahesh Jain
mahesh@reliconservices.com
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
the problem I am facing is that I am mailing the report in pdf format to customers, but sometimes, before the pdf is fully generated, it gets transferred to e-mail, so the file size is less and it is corrupted, but when you check the file it is fully generated.
So we need some solution which will halt mail till the file is fully generated. So is sleep only solution? If it is then it is not totally accurate and also time consuming.
Mahesh Jain
mahesh@reliconservices.com
2) Another way is depending on used PDF printer. Some has API you can use to check, if the file was generated...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.