merge images

T

trevor read

i've been through the google message boards as well as the
MS community newsgroup, and although i see the same answer
to merging images, and i've had friends replicate what i'm
doing on their machines, i'm still not able to merge
images. i'm using office XP on an XP professional machine.
although the objective is to link through a data source,
for starters i cannot get an image to merge into any word
document ~ the result is an image with a red X in the
upper left. i use the following method:
1. cntrl F9
2. edit fields
3. insertpicture field
4. file name "chart1.bmp"
5. add file path: { INCLUDEPICTURE "c:\\temp\\chart1.bmp"
\* MERGEFORMAT}

i've also tried changing the path, using the wizard to
select a MAIL MERGE Template, and starting over like 20
times. Any help would be much appreciated.

trevor
 
E

Eduardo

You can use this, it works for me.

Dim wrdimg As Word.Shapes
Dim wrdApp As Word.Application
Dim wrdDoc As Word.Document

Set wrdDoc = wrdApp.Documents.Add
Set wrdimg = wrdDoc.Shapes

wrdimg.AddPicture "C:\Winter.jpg", False, True, 100, 100,
100, 100



-----Original Message-----
i've been through the google message boards as well as the
MS community newsgroup, and although i see the same answer
to merging images, and i've had friends replicate what i'm
doing on their machines, i'm still not able to merge
images. i'm using office XP on an XP professional machine.
although the objective is to link through a data source,
for starters i cannot get an image to merge into any word
document ~ the result is an image with a red X in the
upper left. i use the following method:
1. cntrl F9
2. edit fields
3. insertpicture field
4. file name "chart1.bmp"
5. add file path: {
INCLUDEPICTURE "c:\\temp\\chart1.bmp"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top