INCLUDEPICTURE - 2000 & 2003

G

Guest

In Word 2000, I have an INSERTPICTURE field as follows

{INCLUDEPICTURE "{DOCVARIABLE "CurrentPath" }chp01\\pwd evol.bmp"\d \* MERGEFORMAT

Where CurrentPath is

CurrentPath = UCase(ActiveDocument.AttachedTemplate.Path
CurrentPath = Left(CurrentPath, InStr(CurrentPath, "\CHP0")

This allows me to work from different drives and folders and it gets resolved as follows

{INCLUDEPICTURE "C:\SYS BUILD VER WIN\chp01\\pwd evol.bmp"\d \* MERGEFORMAT

And it all works. When I use the documents in Word 2003, the field gets resolved (differently) as follows

{INCLUDEPICTURE "../../SYS%20BUILD%2VER%20WIN/chp01/pwd%20evol.bmp" \* MERGEFORMAT \d

But it works. HOWEVER

In a new document based on the same templates as my individual documents, when I run this

With Selectio
.InsertFile FileName:=CurrentPath & "Chp01\overview.doc", Range:="", ConfirmConversions:=True, Link:=False, Attachment:=Fals
.InsertFile FileName:=CurrentPath & "Chp02\Techniques.doc", Range:="", ConfirmConversions:=True, Link:=False, Attachment:=Fals
.WholeStor
.Fields.Updat
.Fields.Unlin
ActiveDocument.ActiveWindow.ActivePane.View.ShowAll = Fals
.HomeKey Unit:=wdStor
End Wit

The Word 2000 document retains the pictures but the Word 2003 document does not show the pictures but just the place holders. Word 2003 is on a different PC

Why the different behaviour? Is there a way to correct the Word 2003 anomaly

Thanks.
 
W

Word Heretic

G'day "AA2e72E" <[email protected]>,

Does the 2003 machine have Tools > Options > View > Picture
placeholders set? If so clear it.

Steve Hudson - Word Heretic
Want a hyperlinked index? S/W R&D? See WordHeretic.com

steve from wordheretic.com (Email replies require payment)


AA2e72E reckoned:
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?QUEyZTcyRQ==?=,

This is a problem that started cropping up in Word 2002:

Tools/Options/General/Web options/Files - there's a checkbox there about updating
links on save. It's there in Word 2000, too, but works correctly in that version;
it *should* only kick in when you save as HTML. But in Word 2002 and 2003 it also
runs when you save normal documents.

I learned this the hard way, while writing a book; it cost me *hours* of work,
until I finally tracked it down.

Have you code check that this option is OFF and you should be alright.
When I use the documents in Word 2003, the field gets resolved (differently) as follows:

{INCLUDEPICTURE "../../SYS%20BUILD%2VER%20WIN/chp01/pwd%20evol.bmp" \* MERGEFORMAT \d }

But it works. HOWEVER:

In a new document based on the same templates as my individual documents, when I run this:

With Selection
.InsertFile FileName:=CurrentPath & "Chp01\overview.doc", Range:="",
ConfirmConversions:=True, Link:=False, Attachment:=False
.InsertFile FileName:=CurrentPath & "Chp02\Techniques.doc", Range:="",
ConfirmConversions:=True, Link:=False, Attachment:=False
.WholeStory
.Fields.Update
.Fields.Unlink
ActiveDocument.ActiveWindow.ActivePane.View.ShowAll = False
.HomeKey Unit:=wdStory
End With

The Word 2000 document retains the pictures but the Word 2003 document does not
show the pictures but just the place holders. Word 2003 is on a different PC.
Why the different behaviour? Is there a way to correct the Word 2003 anomaly?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
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 :)
 
G

Guest

Thank you very much for this extremely valuable tip.
This should save me hours too as it means I do not have to resolve the problem in Word 2003 and can now use Word2003 on a 3GHZ PC rather than Word2000 on a 333MHZ PC.
 
Top