D
D
darkoment2021-07-08 12:19:42
C++ / C#
darkoment, 2021-07-08 12:19:42

What are the tools for working with Word.docs (.doc) documents through c++?

This is my first time working with documents, I need the document to take values ​​from the corresponding variables and replace them with them. I heard that this is possible, but there was no further talk other than "maybe". In what ways and means can this be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2021-07-08
@darkoment

For example, you can use Word itself for this, if that suits you. All MS Office products are COM/ActiveX objects. This can be used in your program in any language that knows how to COM / ActiveX. C++ can do it. Out of the box, both JacaScript and VBScript can do this, so maybe you don't need the pluses.

1
12rbah, 2021-07-08
@12rbah

In general, if performance is not very important to you, then convert doc to docx through some program, and then change the text in docx. You can look for tools like this , but remember that even ms word is not fully compatible between different versions.
offtopic: you can try to use c#, it's easier to work with Word

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question