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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,793 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,604 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 82,656 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