hi to all,
i am facing problem in ShellExecute function. I have invoked a java component called as FOP by running a batch file. This FOP is a third party component which takes path of XML and XSL files as a parameters and generates pdf file. I am using ShellExecute to run a batch file called as "fop.bat". After generation of pdf files my next execution is updating the database about created pdf. I am not checking the status of the ShellExecute. So it is a non blocking kind of a call. I can not use the blocking call as per the requirment of the project.
The ShellExecute is called in a loop as per the no. of requests logged in for the day for pdf generation. So there are number of times the fop.bat is getting executed. There is another component in the system which is triggered when there is an update in database after ShellExecute call, which zipps the pdf and mails it to respective customer.
In some cases, the population of data in pdf is half way and the updation occures which leads to triggering of zipping component.
I need to stop that triggering and only allow updation after complete population of pdf file. How do i do that in the existing system ??? The developed code is a singe threaded application. Is there any other SDK API which will achieve the same and indicate my appication about the complete filling of the pdf ???
Need a help urgently due to deadline ......
thanks in advance
sanjay
i am facing problem in ShellExecute function. I have invoked a java component called as FOP by running a batch file. This FOP is a third party component which takes path of XML and XSL files as a parameters and generates pdf file. I am using ShellExecute to run a batch file called as "fop.bat". After generation of pdf files my next execution is updating the database about created pdf. I am not checking the status of the ShellExecute. So it is a non blocking kind of a call. I can not use the blocking call as per the requirment of the project.
The ShellExecute is called in a loop as per the no. of requests logged in for the day for pdf generation. So there are number of times the fop.bat is getting executed. There is another component in the system which is triggered when there is an update in database after ShellExecute call, which zipps the pdf and mails it to respective customer.
In some cases, the population of data in pdf is half way and the updation occures which leads to triggering of zipping component.
I need to stop that triggering and only allow updation after complete population of pdf file. How do i do that in the existing system ??? The developed code is a singe threaded application. Is there any other SDK API which will achieve the same and indicate my appication about the complete filling of the pdf ???
Need a help urgently due to deadline ......
thanks in advance
sanjay