简体   繁体   English

电子/节点js桌面应用程序内部的开放单词应用程序

[英]open word application inside electron/node js desktop application

I'm new to electron(node.js) desktop application. 我是electron(node.js)桌面应用程序的新手。 I'm trying to find a way open word application(which is already available in that particular pc or mac) inside the electron desktop application browser-window. 我试图在电子桌面应用程序浏览器窗口中找到一种打开单词应用程序(在特定的PC或Mac中已经可用)的方法。 Any help is much appreciated. 任何帮助深表感谢。

You can use shell.openItem() to open a Word file in Word (assuming Word is the default application for that file extension). 您可以使用shell.openItem()在Word中打开Word文件(假定Word是该文件扩展名的默认应用程序)。 Failing that you can always fall back to launching any application you want via Node's child process API . 否则,您总是可以通过Node的子进程API来启动所需的任何应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM