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.
{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.