INCLUDETEXT: Relative Paths Allowed?

P

Paul Moloney

Does the INCLUDETEXT field allow the use of relative paths - for
example, a link to a target file in the same directory as the document,
or one directory below?

Thanks,

P.
 
C

Cindy M -WordMVP-

Hi Paul,
Does the INCLUDETEXT field allow the use of relative paths - for
example, a link to a target file in the same directory as the document,
or one directory below?
Yes... with reservations. Try, for example, "..\\xyz.doc"

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

Paul Moloney

Yes... with reservations. Try, for example, "..\\xyz.doc"

I've tried this with no luck; I've ever tried files
in the _same_ directory. I just downloaded the IncludeText Field
Tutorial by Charles Kyle Kenyon (from
http://www.addbalance.com/word/download.htm), ensuring the three
files comprising the tutorial are in the same directory, and _his_
relative links (for example, IncludeText "IncludeText Source.doc"
MyMark\* CharFormat) don't work for me, giving me an "Error! Not a
valid filename"
error.

I'm using MS Word 2002 SP3, if that's an help.

Cheers.

P.
 
B

Bob S

Does the INCLUDETEXT field allow the use of relative paths - for
example, a link to a target file in the same directory as the document,
or one directory below?

My understanding is as follows, YMMV:

If the document that you wish to include is in the same directory as
the destination document, all you need is the filename.

If they are in different directories, you need a complete pathname,
which makes moving either document awkward.

If you try using a relative path, it will be relative to the current
default document directory, not the actual document directory! A
relative path will work if the File | Open dialog box happened to be
left pointing to the desired subdirectory!

Bob S
 

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