Images in document not saved when invoking SaveAs

N

Nabeel Moeen

Hi,
I have a piece of code where i'm creating a copy of a word document by using
document.Contents.Copy()
and newdocument.Contents.Paste().
when i save the newdocument us WdFormatDocument, images in the original
document do not appear in the copied document, whereas, if i use the
wdFormatHTML the html document appears fine.

Can any one suggest a cause for this behavior.

Regards,
Nabeel Moeen
 
C

Cindy M -WordMVP-

Hi Nabeel,

? Version of Word ?

? How were the pictures inserted ?
Embedded, linked, if linked with "save with document". Are they inline with the
text or do they have text flow formatting applied.

How about if you use
newDoc.Range.FormattedText = existingDoc.Range.FormattedText

instead of copy/paste?
I have a piece of code where i'm creating a copy of a word document by using
document.Contents.Copy()
and newdocument.Contents.Paste().
when i save the newdocument us WdFormatDocument, images in the original
document do not appear in the copied document, whereas, if i use the
wdFormatHTML the html document appears fine.

Can any one suggest a cause for this behavior.

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 :)
 
N

Nabeel Moeen

i'm using Word 2003

the pictures were placed in the document by copy/pasting from another
I dont know whats default behavior in this case
i'm not sure about the formatting applied to the images... besides... i need
it to work for any kind of document/image formatting within Word.

and i'll give your suggestion using FormattedText a try
thanx
 

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