当前位置:网站首页>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
边栏推荐
- 【ubuntu20.04安装MySQL以及MySQL-workbench可视化工具】
- Codeforces Round #811 (Div. 3)
- unity2D横版游戏教程9-对话框dialog
- Android 面试——如何写一个又好又快的日志库?
- The upgrade and transformation plan of the fortress machine for medium and large commercial banks!Must see!
- 模拟对抗之红队免杀开发实践
- 【PCBA program design】Grip dynamometer program
- Driving point cloud format changes bring efficiency improvement
- UDP communication
- Altium Designer 19.1.18 - Protecting Locked Objects
猜你喜欢
随机推荐
Three ways to set a specific device UWP XAML view
SPSS-System Clustering Hand Calculation Practice
1.读写点云文件
The upgrade and transformation plan of the fortress machine for medium and large commercial banks!Must see!
ES6高级-async的用法
moke、动态图片资源打包显示
LayaBox---TypeScript---Example
驱动点云格式修改带来的效率提升
C language knowledge (1) - overview of C language, data types
ROS packages visualization
可视化工作流引擎开发OA系统,让企业少花冤枉钱
DSPE-PEG-Aldehyde, DSPE-PEG-CHO, Phospholipid-Polyethylene Glycol-Aldehyde A hydrophobic 18-carbon phospholipid
【PCBA program design】Grip dynamometer program
27. Dimensionality reduction
Milvus configuration related
Altium Designer 19.1.18 - draw polygons copper hollow out, for the cursor just capture solutions
C语言知识大全(一)——C语言概述,数据类型
proe和creo的区别有哪些
JWT主动校验Token是否过期
UDP通信





![[2022 Nioke Duo School 5 A Question Don't Starve] DP](/img/fa/f1d11297cc5f58919bcc579f0a82e9.png)


