Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
When i work with process class, it can run all files except office files. In this state(open office file for example .doc or .docx or .ppt , ...) I give this error:

The system can not find the file specified.

Anybody can say me, why this happen?

For example this code give previous error:
<br />
System.Diagnostics.Process process = new System.Diagnostics.Process();<br />
process.StartInfo.FileName = "c:\\document.doc";<br />
process.Start();<br />
Posted
Updated 17-Apr-10 1:04am
v3

Does OpenOffice Writer open if you open a .doc file from the Explorer? Check if the file-association points to the correct executable :)
 
Share this answer
 
My question is why this happen whereas that file is exist.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900