Highlighted
Absent Member.
Absent Member.
1163 views

Adding an Image to Word Header section

We have a program that creates a form letter using Microsoft Word, what we need to do is add a image to the header section of the letter.   I have tried all that I can to make this happen but can't seem to find the correct logic.  Below is a snip of code that I have made work to add an image to the top of the letter but this is NOT in the header section as I need it to be...Thanks for any help!

           MODIFY  wrdSelection     Goto(wdGoToLine, wdGoToFirst).
           MODIFY  wrdSelection     ParagraphFormat::Alignment =
                   wdAlignParagraphCenter.
           MODIFY wrdDoc  Shapes::AddPicture(
                  BY NAME @FileName    
                          "c:\download\letter_logo.jpg").

0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

RE: Adding an Image to Word Header section

From following post you can find source VB code to add image into Word, good luck.Big Smile

http://stackoverflow.com/questions/12209423/how-to-insert-image-in-word-document-header

_________________________________________

TAGS: Word Editing   Insert Image in Word

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.