Parse Word (.doc /.docx) document

*爱你&永不变心* 提交于 2020-08-05 08:19:12

问题


Is there a way/best possible solution to parse a .doc / .docx in c#/asp.net?

My document look like this:

(repeater)

chapter(text)

picture

text

(/repeater)

It is very important that the parser readers the picture.


回答1:


in the following question you can find a general word doc parsing: How to parse text from MS Word document to string and in this MSDN page you can find how to handle pictures in the document: https://msdn.microsoft.com/en-us/library/office/hh965732(v=office.14).aspx

post your code example if you need a specific help.




回答2:


You can do it with OpenXML SDK.



来源:https://stackoverflow.com/questions/31376177/parse-word-doc-docx-document

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!