Re: Images in document not saved when invoking SaveAs

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.



Relevant Pages

  • Re: document open wont run
    ... linked file represented by an icon (inline shape??) in the document ... Cindy Meister ... This reply is posted in the Newsgroup; ...
    (microsoft.public.word.vba.general)
  • Re: document open wont run
    ... linked file represented by an icon (inline shape??) in the document ... Cindy Meister ... This reply is posted in the Newsgroup; ...
    (microsoft.public.word.vba.general)
  • Re: "Compare and Merge Documents" issues with images
    ... we deal with inline images. ... wrong or forged evidence picture may result in serious matter consequences. ... I will definitely post into the microsoft.public.officedev newsgroup. ... > style in which case Word only sees the anchor for the graphics, ...
    (microsoft.public.office.misc)
  • Re: macro to make picture in-line with text
    ... Here's a code snippet that will make each wrapped graphic inline, ... Sub GraphicsInline() ... Dim shp As Word.Shape ... This reply is posted in the Newsgroup; please post any follow question or reply ...
    (microsoft.public.word.vba.general)
  • Re: Use VBA to insert a picture
    ... picture to be behind the text instead of inline with it. ... Or you need to take the inline shape and use the .Convert method to ... This newsgroup is targeted at end-users... ...
    (microsoft.public.word.docmanagement)