处理 StartInfo 打开文件 tmp doc 而不是 filepath

问题描述

这是我的代码

Utils.LOG("DocumentHandle.opendocument","Process name: " + FileName);
Utils.LOG("DocumentHandle.opendocument","Temp path: " + filePath);
processstartinfo startInfo = new processstartinfo();
startInfo.FileName = FileName;
startInfo.Arguments = String.Format("\"{0}\"",filePath);
Process currentProcess = Process.GetCurrentProcess();
Process p = new Process();
p.StartInfo = startInfo;
p.Start();

有时我的客户报告 Microsoft Word 打开文件模板(例如 ~WRL0003、~WRL0004)而不是文件(参见图片

enter image description here

记录的文件路径为真,但 Word 打开文件 tmp

我试过 recase 来调试,但我不能

怎么了?任何修复或捕获的解决方案?

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)