Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Word Errors / July 2004

Tip: Looking for answers? Try searching our database.

Word - INCLUDEPICTURE path weirdness

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
josh - 30 Jul 2004 19:52 GMT
OK, experts, I got a Word picture challenge for you...

I'm trying to link images using fields
(insert/picture/file/insert as link) in a Word doc, and
encountering mysterious behavior.  We are both using Word
v2002.  I'm using v10.2627.2625 (ie, no service packs).
He's using the version that has service pack 3 installed.
He's also tried it with Word 2000, sp3.

Here's the field code for an image that my friends Word
2000 sp3 generates when he inserts a linked picture. It
works on his machine:
{ INCLUDEPICTURE "pictures\\image002.jpg" \*MERGEFORMAT
\d }

Double backslash?!  That sould have no place in the
middle of a path, right?

This works on my machine, not my friends:

{INCLUDEPICTURE "pictures/image002.jpg" \*
MERGEFORMATINET \d }

However, the exact same text but different filename works
later in the doc for both his machine and mine!

{INCLUDEPICTURE "pictures/box.jpg" \* MERGEFORMATINET \d }

Please cc microsoftsupport@loopfinder.com on replies so I
know someone posted.

Thanks
-Josh
macropod - 30 Jul 2004 22:38 GMT
Hi Josh,

If you read Word's help file, you'll find that double backslashes in the
path are indeed correct, not only for INCLUDEPICTURE fields, but also for
INCLUDETEXT, HYPERLINK, LINK, & RD fields. That's because the backslash also
operates as a switch in fields (as in the \d), so '\\' tells Word that the
second '\' is a path separator.

Ordinarily, though, you would also have the full path, including the drive,
as part of the field, but your posted examples lack this.

As you've discovered, forward slashes also work. The difference seems to be
related to relative (/) vs absolute (\) paths. You'll find, for example,
that paths specified with '\\' are absolute even if incompletely specified -
try moving a document/linked object pair to another location and the link
will stop working.

Cheers

> OK, experts, I got a Word picture challenge for you...
>
[quoted text clipped - 29 lines]
> Thanks
> -Josh
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.