Add an image or bitmap in a word file upon click of a button in MFC Dialog in VC++ 2019

Vishal Saxena 1 Reputation point
2021-02-23T07:14:10.197+00:00

Hi All

Since I'm New to VC++ 2019 , would like to seek kind help in adding/inserting a bitmap or an image from a file in word document on the click of a button in a MFC dialog. Appreciate if someone can share steps to do the same. Would be highly grateful.

Regards

Developer technologies C++
Developer technologies Visual Studio Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2021-02-23T07:35:36.243+00:00

    Use Office Automation
    (you can find many samples in Google by typing for example : "word automation mfc")
    then
    Document.InlineShapes
    InlineShapes.AddPicture
    to insert an image

    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.