Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pywintypes.com_error: (-2146822307, 'OLE error 0x800a175d', None, None) #119

@WanZunGe

Description

@WanZunGe

这是完整错误提示
Traceback (most recent call last):
File "K:\Microsoft VS Code\my project\doc批量转换为docx.py", line 94, in
office.word.doc2docx(input_path=src_directory, output_path=dest_directory) #方法二
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "K:\python312\Lib\site-packages\office\lib\decorator_utils\instruction_url.py", line 128, in instruction_wrapper
instruction_res = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "K:\python312\Lib\site-packages\office\api\word.py", line 37, in doc2docx
poword.doc2docx(input_path, output_path)
File "K:\python312\Lib\site-packages\poword\api\word.py", line 31, in doc2docx
mainWord.doc2docx(input_path, output_path)
File "K:\python312\Lib\site-packages\poword\core\WordType.py", line 65, in doc2docx
self.convert4word(type_id, input_path, output_path, docSuffix)
File "K:\python312\Lib\site-packages\poword\core\WordType.py", line 93, in convert4word
doc = word_app.Documents.Open(str(word_file), ReadOnly=1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Temp\gen_py\3.12\00020905-0000-0000-C000-000000000046x0x8x7\Documents.py", line 93, in Open
ret = self.oleobj.InvokeTypes(19, LCID, 1, (13, 0), ((16396, 1), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17), (16396, 17)),FileName
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pywintypes.com_error: (-2146822307, 'OLE error 0x800a175d', None, None)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions