通过打开本地空白文件的方式从而打开Office办公软件

const shell = require('electron').shell;
const path = require('path');
shell.openItem(path.join(__dirname, 'new.docx'));

 备注:这种方式只是用来测试打开本地Office文件,如果应用正式打包之后,需通过注册表方式进行打开指定Office软件。

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2021-08-08
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案