V
V
Vladimir2015-12-20 11:23:07
C++ / C#
Vladimir, 2015-12-20 11:23:07

Converting doc to xml or how to drive a table into a program?

Good day to all!
I'm writing a program now and ran into a problem. There is a very large table in the .doc file, I want to convert it to xml (I don’t know how yet) and already hook the xml file to the program.
What options (methods) exist to drive (pick up) this table to the program?
Driving it manually is not an option, it takes a very long time, and the table may change a lot in the future.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AtomKrieg, 2015-12-20
@AtomKrieg

1) Save doc as docx.
2) Rename docx to zip
3) Dig into the insides - everything is there
Option b - ctrl + c-ctrl + v table in csv

D
Dmitry Kovalsky, 2015-12-20
@dmitryKovalskiy

For C# / Visual Studio there is such a component as Visual Studio Tools For Office. It adds the necessary assemblies to the system. An example of work is www.cyberforum.ru/post182697.html . There are several ways to solve such problems. As a rule, it all comes down to finding libraries for native interaction with office documents. This task is very popular, libraries are found with enviable ease, I am sure that even NuGet has something suitable. Personal advice - never poke such formats with your finger, despite the fact that you are advised. Spend a lot of time and give birth to only bugs with your crutches.
UPD: https://www.nuget.org/packages/Spire.Doc/ Superficial search for a minute

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question