腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(456)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
3
回答
无法导入
comtypes
.gen
如果我试试这个:我得到: File "<pyshell#2>", line 1, in<module>ImportError: No module named gen 然而,像import
comtypes
和import
comtypes
.client从名字上看,
comtypes
.gen是生成代码的
浏览 8
修改于2010-10-10
得票数 4
1
回答
Python
comtypes
读取Outlook文件
word =
comtypes
.client.CreateObject('Word.Application')ol =
comtypes
.client.CreateObject('Outlook.Application') msg = ol.MailItem.Open(filename
浏览 1
提问于2017-09-10
得票数 0
回答已采纳
1
回答
更改输入文件、
comtypes
的路径
import sysimport
comtypes
.clientin_file = os.path.abspath('/Check/')doc = word.Documents.Open
浏览 4
提问于2014-09-15
得票数 1
回答已采纳
1
回答
word =
comtypes
.client.CreateObject('Word.Application')生成错误
Windows 10,Anaconda Spyder,Python试图将单词“.doc”转换为PDF第一步失败word =
comtypes
.client.CreateObject('Word.Application') 回溯(最近一次调用):文件"C:\ProgramData\Anac
浏览 13
提问于2021-03-04
得票数 0
1
回答
comtypes
中的COM对象变量参数(python)
我正在尝试使用comtype 1.1.0包访问python 2.7.6.1中的COM对象,并且由于返回变量类型,我有一个从COM对象方法获得正确数据的基本问题>>> fm1 = CreateObject("MCB.PCM")(<
comtypes
.automation.LP_tagVARIANTobject at 0
浏览 1
提问于2014-06-21
得票数 3
1
回答
将
comtypes
移植到win32com
实际上,我有这样的代码: object_IXXObjCommunications = object_IXXObjManager.QueryInterface(
comtypes
.gen.XXOBJLib.IXXObjCommunicat
浏览 4
修改于2020-07-15
得票数 3
回答已采纳
2
回答
从zip文件通过pip安装
comtypes
1.1.7后出错
我下载了压缩文件形式的,并使用pip install
comtypes
-1.1.7.zip进行了安装。已成功安装,但当我尝试导入模块时,它显示错误消息:Traceback (most recent call last): File "C:\Python367\lib\
comtypes
\__init__.py", line 381 except
浏览 16
提问于2019-03-26
得票数 0
回答已采纳
1
回答
Python
comtypes
'_Dispatch‘对象不可调用
我一直在使用Python的
comtypes
模块来自动化Photoshop,但是当我尝试在windows8上执行命令时,我得到了一个TypeError。from
comtypes
.client import CreateObject psApp = CreateObject("Photoshop.Application")
浏览 5
提问于2013-02-14
得票数 0
回答已采纳
2
回答
AttributeError:模块“
comtypes
.gen.SpeechLib”没有属性“ISpeechVoice”
_tts =
comtypes
.client.CreateObject('SAPI.SPVoice') return _manageinterface=interface) File "C:\Users\Romain\AppDa
浏览 3
提问于2020-06-25
得票数 0
回答已采纳
1
回答
Python“导入
comtypes
.client”间接调用pwd.py
我放置了一些调试输出,并发现导入语句"import
comtypes
.client“调用了pwd.py。
浏览 1
修改于2015-04-27
得票数 0
1
回答
使用
comtypes
.client.CreateObject()后释放安装程序对象
我使用
comtypes
.client模块用Python语言编写了一个函数,该函数应该从.msi文件中打开数据库,并写入一个特殊的(键、值)对。being used by another process 我所理解的是我的COM对象仍然在使用中,所以我不能访问文件,函数和函数调用看起来像这样(显然这非常简单,但看起来应该是这样的): import
comtypes
.clientshutil install
浏览 181
修改于2020-11-09
得票数 1
回答已采纳
1
回答
使用
comtypes
.client将.pptx文件转换为.pdf时出错
: try: except ImportError as error: else: try:
浏览 7
修改于2017-08-20
得票数 2
回答已采纳
1
回答
在C++中从
ComTypes
.STGMEDIUM获取IStorage
我有一个对象,我想要获取它的IStorage。在成员的帮助下,您可以从pstg获得它。类缺少这样的成员。
浏览 3
提问于2012-10-30
得票数 0
回答已采纳
1
回答
comtypes
.gen属性不同于自下载和conda预安装
我需要使用'
comtypes
‘包来连接软件ETABS,所以我首先用conda安装命令下载了它,然后我尝试了下一个命令行:但是,我收到了下一个错误:然而,我意识到如果用Anaconda附带的基础环境来尝试相同的命
浏览 2
提问于2020-03-20
得票数 0
1
回答
如何使用python
comtypes
.client为特定版本的应用程序创建com对象?
import
comtypes
.clientapp =
comtypes
.client.CreateObject
浏览 129
提问于2018-07-26
得票数 1
2
回答
python到docx转换,
comtypes
.Documents.Open抛出ValueError: NULL COM指针访问
下面是我将.doc转换为.docx的代码import
comtypes
,
comtypes
.client tmpfile.close()
comtypes
.CoInitialize(); wordapp =
comtypes
.client.
浏览 6
提问于2014-11-18
得票数 2
2
回答
System.Runtime.InteropServices.
ComTypes
.IStream到System.IO.Stream
在Invoke 3.0项目中,我需要通过P/Invoke进行一些调用(特别是像PTConvertPrintTicketToDevMode()这样的PrintTicket提供者函数)。我需要它作为System.IO.Stream,这样我就可以轻松地将.NET类(如XmlDocument)与这些导入函数的输出一起使用。但是,除了一次读写一块字节的数据之外,我找不到一种不那么痛苦的方法来将它来回转换为。对于一个看起来很常见的任务来说,这似乎太笨拙了。我将导入为: [DllImport("prntvpt.dll
浏览 1
提问于2008-12-22
得票数 2
回答已采纳
1
回答
System.Runtime.InteropServices.UCOM*类和System.Runtime.InteropServices.
ComTypes
.*在.NET中有区别吗?
我试图从一个旧系统中删除一堆警告,其中一个警告是: 'System.Runtime.InteropServices.UCOMIEnumMoniker‘是过时的:“使用System.Runtime.InteropServices.
ComTypes
.IEnumMoniker如果它们只是重命名类(删除'UCOM‘部分)并将它们移到
ComTypes
命名空间中,我将非常乐意这样做。
浏览 1
修改于2011-01-12
得票数 0
回答已采纳
2
回答
USING_NET11 using System.Runtime.InteropServices.
ComTypes
;#endif是什么意思?
USING_NET11 #endif 在我的项目文件中,我使用dshownet包装器实现了网络摄像头捕获
浏览 8
修改于2015-12-17
得票数 1
回答已采纳
1
回答
使用
comtypes
.client.GetModule()为dll文件生成python包装器时出现AssertionError
当我尝试生成python包装器时,如下所示:我得到以下错误消息
浏览 5
修改于2014-01-23
得票数 1
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券