word转pdf时python报错:TypeError: This COM object can not automate the makepy process - please run makepy
在执行批量转pdf的脚本时,报错:TypeError: This COM object can not automate the makepy process - please run makepy。
查了一些资料说时win32com导致的。
报错处:
word = gencache.EnsureDispatch(‘Word.Application’)
后来将代码改为:
word = client.DispatchEx(‘Word.Application’)
就不报错了。
word转pdf时python报错:TypeError: This COM object can not automate the makepy process - please run makepy相关推荐
- Python报错TypeError: 'str' object is not callable
原文:http://blog.sina.com.cn/s/blog_71f3890901017rsh.html Python报错TypeError: 'str' object is not calla ...
- python报错 TypeError: an integer is required
问题描述: 在本地使用socket向NetAssist传送数据的时候,执行python文件后发现报出python 报错TypeError: an integer is required错误 代码: 1 ...
- Python报错TypeError: ‘User‘ object is not iterable
Python报错TypeError: 'User' object is not iterable 原因 User对象是不可迭代的,我这里是因为User并不是list,所以是不可迭代的,所以不使用迭代即 ...
- Python报错 TypeError: Descriptors cannot not be created directly
Python报错TypeError: Descriptors cannot not be created directly 具体错误: TypeError: Descriptors cannot no ...
- Python报错TypeError: Descriptors cannot not be created directly
Python报错TypeError: Descriptors cannot not be created directly 具体错误: TypeError: Descriptors cannot no ...
- python报错TypeError: must be str, not int
python报错TypeError: must be str, not int 字符串拼接一个整型变量报错,代码如下 for i in range(1,586):res = 'test' + i 报错 ...
- Word转PDF失败,报错Adobe Acrobat没激活!!!我如此穷,肯定会换个办法解决呀!
Word转PDF失败,报错关于Adobe Acrobat!!!我如此穷,肯定会换个办法解决呀! 先上成果 先上成果 查看了相关参考,提示安装一个microsoft save as pdf or xps ...
- 生成HTML报告时,报错:AttributeError: type object ‘_io.StringIO‘ has no attribute ‘StringIO‘
生成HTML报告时,报错:AttributeError: type object '_io.StringIO' has no attribute 'StringIO' 百度后,找到解决方法,原链接:h ...
- 解决pip安装时出现报错TypeError: unsupported operand type(s) for -=: ‘Retry‘ and ‘int‘
我在Linux下使用pip安装时出现报错: Exception: Traceback (most recent call last):File "/usr/lib/python2.7/dis ...
最新文章
- jenkins实例似乎已离线
- 固态器件理论(10)半导体制造技术
- 前端基础之设计一个个人工作室介绍界面
- mongodb更新某个字段_直播 | MongoDB开源数据库的云上之路
- 在Centos7安装mysql
- 文件解析漏洞总结-IIS
- c语言程序中注释的格式化,格式化C语言命令indent
- 你用什么型号手机呢?体验如何?
- Wine 2.10 发布,Windows 应用兼容层
- 操作系统--存储管理的任务
- 计算机二级关系模式知识点,2013年计算机二级VFP关系模式知识点详解
- 阿里云 centos7 tomcat 启动巨慢的解决方法(几分钟)
- 将matlab代码转换成C代码
- 什么是埋点?简述埋点的操作流程
- 智鼎在线测评是测什么_(详解)人才测评工具和人才测评方法
- java.nio.Buffer.filp()方法的用法详解
- 用Html实现世纪佳缘交友注册页面是什么体验?
- 万物互联时代,Check Point开启网络安全新未来
- 蓝桥 卷“兔”来袭编程竞赛专场-10仿射加密 题解
- tex 表格内容换行_{Latex}{Tabular}文本超出表格自动换行