当前位置:网站首页>com.jacob.com.ComFailException: Invoke of: ActiveDocument
com.jacob.com.ComFailException: Invoke of: ActiveDocument
2022-08-04 21:37:00 【lichaohua!】
com.jacob.com.ComFailException: Invoke of: ActiveDocument
在使用jacob操作word文档时,发生了一个这么一个报错,一开始百度居然没有这个报错的解决方案,所以只能自己摸索着解决
源代码出处
经过debugger,为什么get不到ActiveDocument属性,因为根本就没有
逻辑是根据路径打开一个word文档,然后获取里面的属性,获取不到,说明,word文档就没有成功打开,
其实就是一个空指针异常,经过排查,原来是我没有传原文件路径filePath
边栏推荐
- 实战:10 种实现延迟任务的方法,附代码!
- dotnet enables JIT multi-core compilation to improve startup performance
- LayaBox---TypeScript---Problems encountered at first contact
- 【uiautomation】微信好友列表获取(存储到txt中)
- UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xd6 in position 120: invalid continuation byte
- ROS播包可视化
- PCBA scheme design - kitchen voice scale chip scheme
- win10 uwp use WinDbg to debug
- OD-Model【6】:YOLOv2
- 七夕,当爱神丘比特遇上牛郎和织女
猜你喜欢

七夕,当爱神丘比特遇上牛郎和织女

中大型商业银行堡垒机升级改造方案!必看!

Re24:读论文 IOT-Match Explainable Legal Case Matching via Inverse Optimal Transport-based Rationale Ext

y87.第五章 分布式链路追踪系统 -- 分布式链路追踪系统起源(一)

模拟对抗之红队免杀开发实践

buu web

MySQL查询为啥慢了?

数电快速入门(五)(编码器的介绍以及通用编码器74LS148和74LS147的介绍)

数电快速入门(四)(组合逻辑电路的分析以及设计的介绍)

27. Dimensionality reduction
随机推荐
matlab drawing
PowerCLi import license to vCenter 7
In which industries is the PMP certificate useful?
【CC3200AI 实验教程 1】疯壳·AI语音人脸识别(会议记录仪/人脸打卡机)-开发环境搭建
PyTorch Geometric (PyG) 安装教程
buu web
LayaBox---知识点
模拟对抗之红队免杀开发实践
PRIMAL: Pathfinding via Reinforcement and Imitation Multi-Agent Learning Code Analysis
七夕特制:《牛郎会织女》
LeetCode 199: 二叉树的右视图
dotnet delete read-only files
C语言知识大全(一)——C语言概述,数据类型
Altium Designer 19.1.18 - draw polygons copper hollow out, for the cursor just capture solutions
buu web
laravel whereDoesntHave
PowerCLi batch configuration of NTP
Arduino 电机测速
七夕特制:《牛郎会织女》
实战:10 种实现延迟任务的方法,附代码!