我正在使用comtype库将不同类型的文件转换为pdf,并且出于某种原因,每当我尝试为excel应用程序创建客户端对象时,都会得到module 'comtypes.gen.Excel' has no attribute'_Application'。以下是脚本,以供参考:
excel = comtypes.client.CreateObject("Excel.Application") # exception
所有这些问题:
public class Application private Microsoft.Office.Interop.Excel.Application innerApplication= new Microsoft.Office.Interop.Excel.Application innerApplication();