更新时间:2023-01-29 17:53:40
我结束了调用exe为我完成工作.我使用child_process来调用 printhtml ,这将为我完成所有打印工作.我的代码以这种方式结束:
I ended calling an exe to do the work for me. I use a child_process to call printhtml, which does all the printing work for me. My code ended this way:
var exec = require('child_process').exec;
exec('printhtml.exe file=file.html', function(err, data) {
console.log(data.toString());
});