当前位置:网站首页>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
边栏推荐
- 数电快速入门(二)(复合逻辑运算和逻辑代数的基本定律的介绍)
- OD-Model【6】:YOLOv2
- SPSS-System Clustering Software Practice
- 1319_STM32F103串口BootLoader移植
- [2022 Nioke Duo School 5 A Question Don't Starve] DP
- 零基础都能拿捏的七夕浪漫代码,快去表白或去制造惊喜吧
- 【线性代数02】AX=b的2种解释和矩阵乘法的5种视角
- 1.读写点云文件
- Named routes, the role of name in components
- JWT actively checks whether the Token has expired
猜你喜欢
Altium Designer 19.1.18 - Protecting Locked Objects
Unknown point cloud structure file conversion requirements
数电快速入门(三)(卡诺图化简法的介绍)
基于 Milvus 和 ResNet50 的图像搜索(部署及应用)
OD-Model [6]: YOLOv2
Win11如何开启Telnet客户端?
ES6高级-Promise的用法
动手学深度学习_NiN
SPSS-unary regression practice
[Linear Algebra 03] Elimination method display and 4 solutions of AX=b
随机推荐
【PCBA program design】Grip dynamometer program
JWT actively checks whether the Token has expired
ROS播包可视化
dotnet compress Stream or file using lz4net
Analysis and treatment of Ramnit infectious virus
EasyGBS接入最新版海康摄像头后无法传递告警信息该如何解决?
多个平台显示IP属地,必须大力推行互联网实名制
In action: 10 ways to implement delayed tasks, with code!
LayaBox---TypeScript---首次接触遇到的问题
立方度量(Cubic Metric)
Axure9基本交互操作(一)
如何一键重装Win11系统 一键重装系统方法
LayaBox---TypeScript---举例
立即升级!WPS Office 出现 0day 高危安全漏洞:可完全接管系统,官方推出紧急更新
mysql基础
LeetCode: 406. 根据身高重建队列
Driving point cloud format changes bring efficiency improvement
Why is MySQL query slow?
dotnet delete read-only files
Altium Designer 19.1.18 - 保护锁定的对象