Killing EXCEL Process from within Powerbuilder
Posted on 2003-11-12
I am currently launching an asynchronous process from within powerbuilder that is used to generate Excel Reports. Currently I only allow one report to be ran at a time, however doing it from within an asynchronous process allows the user to continue to use the rest of the application(the main reason I used the asynchronous process was so that the application was not locked up waiting for the report to finish). I am running into a problem when excel fails to finish the report. I need to be able to find and kill the exccel process before i can move on. I am currently pndering creating an entirely new dll written in VB to handle all report generation. However if anyone could give me some tips as to how i can find and kill the excel process from within powerbuilder that would be a great help, even if i have to create a dll in c++ to do this, that would be acceptable. thanks for the help in advance.