原帖 http://hi.baidu.com/thepurpledream/blog/item/7872efdd60b2f9305882dd29.html

 

 

前段时间,项目中用到一个通过应用程序启动Windows Mobile中的Office应用程序的东西,当时使用
            System.Diagnostics.Process.Start("pword.exe", @"\Program Files\test.txt");

方法进行启动,结果启动后,关闭OFFICE文档后,仍然有一个文件浏览器的窗口在打开着,必须要再次关闭这个窗口才能够返回到应用程序页面,很是恼火!

今天终于找到了合适的方法,解决这个问题,

            System.Diagnostics.Process.Start("pword.exe", "-opendoc " + @"\Program Files\test.txt");

搞定,稍微记录一下,以备以后使用。

 

 

相关文章:

  • 2021-07-25
  • 2021-12-26
  • 2022-12-23
  • 2021-09-28
  • 2021-12-03
  • 2021-10-06
  • 2021-09-24
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2021-06-05
相关资源
相似解决方案