A
Al
Greetings,
I'm trying to open a word document when a command button is clicked. The code below loads Microsoft Word. I can see it in the task manager. When I tried to copy the file, I received an access denied error. So, I believe the document is also loaded.
But, the document is not visible. Can someone tell me what I'm doing wrong? Does anyone have a working code sample.
Thanks in advance for your help.
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="winword";
proc.StartInfo.Arguments="D:\\aaa\\bbb\\ccc\\ddd.doc";
proc.Start();
--
Regards,
Al
I'm trying to open a word document when a command button is clicked. The code below loads Microsoft Word. I can see it in the task manager. When I tried to copy the file, I received an access denied error. So, I believe the document is also loaded.
But, the document is not visible. Can someone tell me what I'm doing wrong? Does anyone have a working code sample.
Thanks in advance for your help.
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="winword";
proc.StartInfo.Arguments="D:\\aaa\\bbb\\ccc\\ddd.doc";
proc.Start();
--
Regards,
Al