i'm using comptypes python 3.6 , trying read office documents need extract text these files.
i understand word , ppt how open files using comtype
word = comtypes.client.createobject('word.application') doc = word.documents.open(filename) ppt = comtypes.client.createobject('powerpoint.application') prs = ppt.presentations.open(filename)
how outlook files (.msg)? tried following code doesn't work
ol = comtypes.client.createobject('outlook.application') msg = ol.mailitem.open(filename)
i've resorted in using approach done in thread instead of testing out on question.
Comments
Post a Comment