Process.Start Excel File Does not Open.

G

Guest

Hello
I am Using Following Code to Open Ex cel File From my C# Windows based
Application.
myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = strFilePath;
myProcess.StartInfo.UseShellExecute = true;
myProcess.Start();

This Works Fine when I Open the File FirstTime.
When I try to Open A Already open File through this Code.
Then Close that Excel File and Try to open it again with this Code or From
Anywhere else by Clicking any Excel File, The Excel Application Does not open
Properly. (The reason Being that although the Excel Application is Closed its
Process Excel.exe is still running.) We need to Terminate the Process from
Task manager to Open Excel Again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top