打开办公文件 [英] open office file
本文介绍了打开办公文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我使用流程类时,它可以运行除Office文件以外的所有文件.在这种状态下(打开的办公文件,例如.doc或.docx或.ppt,...),我给出此错误:
系统找不到指定的文件.
谁能说我,为什么会这样?
例如,此代码给出了先前的错误:
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 />
推荐答案
如果从资源管理器中打开.doc文件,OpenOffice Writer是否打开?检查文件关联是否指向正确的可执行文件:)
Does OpenOffice Writer open if you open a .doc file from the Explorer? Check if the file-association points to the correct executable :)
我的问题是为什么在文件存在的情况下会发生这种情况.
My question is why this happen whereas that file is exist.
这篇关于打开办公文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文