InsertFile() and image anchors problem

M

Mike

Hi! I am looping through several files in a directory and append them to each
other using InsertFile().

If a document contains an image that is anchored, then the image does not
stay with the original document. It rather moves somewhere else.

What are my options to programmatically force all images to stay intact with
their parents?

Many Thanks in Advance,

-- Michael
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TWlrZQ==?=,
I am looping through several files in a directory and append them to each
other using InsertFile().

If a document contains an image that is anchored, then the image does not
stay with the original document. It rather moves somewhere else.

What are my options to programmatically force all images to stay intact with
their parents?
Version of Word involved?

Can you describe more precisely how the image is moving? Is it a case of
inserting a file into the "middle" of a page that contains text from the
previous document you inserted? And the image is appearing in that text?

this could be the case if the graphics object is formatted relative to the
page, rather than relative to the text. (IOW, the "Move with text" checkbox is
not activated in the advanced layout options.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
M

Mike

Hi! Sorry for getting back to you so late.

I am using Word 2003. I checked the layout properties and
the "Move with text" checkbox is
activated in the advanced layout options.
The fix will probably has to do with fixing the
Absolute position that pins the picture to a paragraph.
Since page breaks can occur withing a paragraph, the pinned picture
stays in the old location.

What are my options to fix the problems programmatically?

Numerous thanks in advance,

--Michael
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TWlrZQ==?=,
I am using Word 2003. I checked the layout properties and
the "Move with text" checkbox is
activated in the advanced layout options.
The fix will probably has to do with fixing the
Absolute position that pins the picture to a paragraph.
Since page breaks can occur withing a paragraph, the pinned picture
stays in the old location.

What are my options to fix the problems programmatically?
Difficult. Especially since I'm not actually looking at the problem.
Can you know in advance what/where the picture should be? Or do you
have control over the document being imported (so you could give the
picture a name that contains the information you need to position
it)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

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