I am looking for MS word interop API documents and code sample in C++

Kharche, Prashant 1 Reputation point
2021-12-15T07:17:32.057+00:00

I have old C++ program implemented using COleDispatchDriver.
This program has minimum set of APIs to read the Selection and save the document (docx) file to image.

I need to find the Paragraph, Images and Table in this Selection. I also need to read and update attributes of these objects like Left Indent and Prefered Width. I searched on Microsoft sites. I did not find any references.

Could you please guide me on this? Are these APIs depricated in C++?

Thanks for the help.

Developer technologies | C++
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2021-12-15T07:51:39.38+00:00

    I searched on Microsoft sites. I did not find any references

    There are samples like How to automate Microsoft Word to perform a mail merge using Visual C++ and MFC
    then you follow the syntax from the doc Microsoft.Office.Interop.Word Namespace

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.