B
B
bullock2017-10-20 12:52:01
C++ / C#
bullock, 2017-10-20 12:52:01

How to transfer a table from docx to a DataSet without pain?

Tell me a way how to parse and transfer a table from docx to a DataSet object.
As far as I know, in OpenXML there is such an object as DocumentFormat.OpenXml.Wordprocessing.Table, is it possible to shove it into the DataSet somehow without unnecessary crap?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Yudakov, 2017-10-20
@AlexanderYudakov

Hardly without hemorrhoids.
However, parsing docx is not such a difficult task. We unpack the zip-archive (i.e. docx) by calling 7-zip, take xml from there and parse it using XDocument, or XmlDocument - whichever you prefer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question