当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
Moke, dynamic image resource package display
经验分享|盘点企业进行知识管理时的困惑类型
8 年产品经验,我总结了这些持续高效研发实践经验 · 协同篇
1319_STM32F103串口BootLoader移植
[2022 Nioke Duo School 5 A Question Don't Starve] DP
Dotnet using WMI software acquisition system installation
LayaBox---TypeScript---举例
如何将二叉搜索树转化为一个有序的双向链表(原树上修改)
【PCBA program design】Grip dynamometer program
Some problems with passing parameters of meta and params in routing (can be passed but not passed, empty, collocation, click to pass multiple parameters to report an error)
DSPE-PEG-Aldehyde,DSPE-PEG-CHO,磷脂-聚乙二醇-醛基一种疏水18碳磷脂
[21 days learning challenge - kernel notes] (2), based in the device tree
[larave]关于laravel使用form submit()不能获取值问题
JWT actively checks whether the Token has expired
Go----Go 语言基础之标识符、关键字、命名规范、变量、常量
国内的PMP证书含金量到底如何
LayaBox---TypeScript---Problems encountered at first contact
Named routes, the role of name in components
知识分享|如何设计有效的帮助中心,不妨来看看以下几点
buu web