Step1:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

运行comexp.msc -32

注意因为excel 是32 位的,所以这里用的32位的操作, 如用64位的操作命令:dcomcnfg.exe,将找不到excel com

进入component service

 

Step2, 找到excel设置安全属性

 解决window 12 service 不能调用excel ,报

 

 

Step3->增加用户,赋予权限

 解决window 12 service 不能调用excel ,报

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄