S
stefan.sedich
Hi im trying to open a word document in word. Like this:
Process p = new Process();
p.EnableRaisingEvents = false;
string mFileName = @"c:\a.doc";
p.StartInfo.FileName = mFileName;
p.Start();
while ((int)p.MainWindowHandle == 0) {
p.Refresh();
}
My problem is that when it hits the mainwindowhandle bit, it says:
Process has exited, so the requested information is not available.
This technique works for other applications just doesnt seem to work
for word or outlook, works fine for excel and powerpoint!!
Any ideas here..
Thanks
Process p = new Process();
p.EnableRaisingEvents = false;
string mFileName = @"c:\a.doc";
p.StartInfo.FileName = mFileName;
p.Start();
while ((int)p.MainWindowHandle == 0) {
p.Refresh();
}
My problem is that when it hits the mainwindowhandle bit, it says:
Process has exited, so the requested information is not available.
This technique works for other applications just doesnt seem to work
for word or outlook, works fine for excel and powerpoint!!
Any ideas here..
Thanks