#1   Report Post  
George
 
Posts: n/a
Default Is includetext usable?

I am using Word 2000. I have reviewed Daiya Mitchel and Cindy Meister's
excellent article "How to Use Includetext Fields". I would like to be able to
use the includetext field to include over one hundred documents into a master
document. To simplify this problem, I have all the source files in the same
folder with the master document. I do not want to embed the full path in each
reference because this file and all the source files will be moved around as
we put these files under control, into ClearCase, etc. I enclose the complete
file name and path in double quotes because they contain spaces.

I have tried: 1.) deleting the file path, leaving only the source file name;
2) using a path name of ".\\" to mean the current folder; and 3) deleting the
path, leaving only the source file name and entering a Hyperlink base in
Files-Properties, such as "T:\\Test\Test Scripts\Final" or "T:\\Test\Test
Scripts\Final\". None of these approaches has worked. When I update the link
I get the "Error! Cannot Open File.".

Any ideas?

PS, any ideas as to why Microsoft refuses to fix this problem? It seems to
be in 2000, 2003, and 2005 as I read the threads.
  #2   Report Post  
Daiya Mitchell
 
Posts: n/a
Default

There is no 2005 yet, just by the way. MacWord 2004.

I did some testing and got weird results using a hyperlink base, but not yet
sorted. (I thought I tested hyperlink base, but it's possible I believed
Help on that).

As a test--try this. With your includetext fields set up as relative paths
to only the filename (no hyperlink base) open and close any doc from the
folder where everything is stored. If you read the article, you know that
this sets that folder as the 'active folder' in Word's view, and it will
judge the relative links from that. If you ensure that active folder is the
correct one, do the links update okay?

Re both the hyperlink base and the DocProperty route, I am not sure whether
this piece of advice applies to the text in FileProperties. "While a
regular WinWord path would only use a single \ between folders, within a
field the filepath requires \\." Test it out?

The article also suggested another method. Did you try this one? It may be
most reliable, as it leaves very little up to Word.

Workaround 2: use absolute filepaths, but create a custom document property
to store the base filepath (FilePropertiesCustom). Then use a DocProperty
field to carry the path info into the IncludeText fields. You can easily
change the custom document property in FileProperties. The nested fields
might look like this:

{ INCLUDETEXT "{ DOCPROPERTY LinkFilePath }Source.doc" Bookmark }


On 9/8/05 6:25 AM, "George" wrote:

I am using Word 2000. I have reviewed Daiya Mitchel and Cindy Meister's
excellent article "How to Use Includetext Fields". I would like to be able to
use the includetext field to include over one hundred documents into a master
document. To simplify this problem, I have all the source files in the same
folder with the master document. I do not want to embed the full path in each
reference because this file and all the source files will be moved around as
we put these files under control, into ClearCase, etc. I enclose the complete
file name and path in double quotes because they contain spaces.

I have tried: 1.) deleting the file path, leaving only the source file name;
2) using a path name of ".\\" to mean the current folder; and 3) deleting the
path, leaving only the source file name and entering a Hyperlink base in
Files-Properties, such as "T:\\Test\Test Scripts\Final" or "T:\\Test\Test
Scripts\Final\". None of these approaches has worked. When I update the link
I get the "Error! Cannot Open File.".

Any ideas?

PS, any ideas as to why Microsoft refuses to fix this problem? It seems to
be in 2000, 2003, and 2005 as I read the threads.


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/

  #3   Report Post  
George
 
Posts: n/a
Default

Dalya, I have used your Workaround #2, as mentioned in your paper. I defined
a custom DocProperty called filepath. I doubled all the reverse slashes in
the path name. I then edited each IncludeText field to use a reference to
that DocProperty. I unchecked the box on the Insert Field dialog box to
prevent the automatic insertion of the MERGEFELD term This resulted in
something like { INCLUDETEXT "{ DOCPROPERTY FilePath }Source.Doc" } . Of
course this resulted in a lot of editing.

I did not find that specifying the hyperlink base for the document, as
mentioned as your Workaround 1, worked.

I find it incredulous that Microsoft hasn't fixed this problem and allowed
for straightforward use of relative paths in Word. It is bad enough that I
encountered the problem in Word 2000. To hear that the problem continues to
exist right up to the present is astounding.

"Daiya Mitchell" wrote:

There is no 2005 yet, just by the way. MacWord 2004.

I did some testing and got weird results using a hyperlink base, but not yet
sorted. (I thought I tested hyperlink base, but it's possible I believed
Help on that).

As a test--try this. With your includetext fields set up as relative paths
to only the filename (no hyperlink base) open and close any doc from the
folder where everything is stored. If you read the article, you know that
this sets that folder as the 'active folder' in Word's view, and it will
judge the relative links from that. If you ensure that active folder is the
correct one, do the links update okay?

Re both the hyperlink base and the DocProperty route, I am not sure whether
this piece of advice applies to the text in FileProperties. "While a
regular WinWord path would only use a single \ between folders, within a
field the filepath requires \\." Test it out?

The article also suggested another method. Did you try this one? It may be
most reliable, as it leaves very little up to Word.

Workaround 2: use absolute filepaths, but create a custom document property
to store the base filepath (FilePropertiesCustom). Then use a DocProperty
field to carry the path info into the IncludeText fields. You can easily
change the custom document property in FileProperties. The nested fields
might look like this:

{ INCLUDETEXT "{ DOCPROPERTY LinkFilePath }Source.doc" Bookmark }


On 9/8/05 6:25 AM, "George" wrote:

I am using Word 2000. I have reviewed Daiya Mitchel and Cindy Meister's
excellent article "How to Use Includetext Fields". I would like to be able to
use the includetext field to include over one hundred documents into a master
document. To simplify this problem, I have all the source files in the same
folder with the master document. I do not want to embed the full path in each
reference because this file and all the source files will be moved around as
we put these files under control, into ClearCase, etc. I enclose the complete
file name and path in double quotes because they contain spaces.

I have tried: 1.) deleting the file path, leaving only the source file name;
2) using a path name of ".\\" to mean the current folder; and 3) deleting the
path, leaving only the source file name and entering a Hyperlink base in
Files-Properties, such as "T:\\Test\Test Scripts\Final" or "T:\\Test\Test
Scripts\Final\". None of these approaches has worked. When I update the link
I get the "Error! Cannot Open File.".

Any ideas?

PS, any ideas as to why Microsoft refuses to fix this problem? It seems to
be in 2000, 2003, and 2005 as I read the threads.


--
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: http://www.word.mvps.org/MacWordNew/
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Path in INCLUDETEXT Donna Microsoft Word Help 1 June 12th 05 02:44 AM
INCLUDETEXT problem Michael Microsoft Word Help 1 April 25th 05 07:50 PM
Possible BUG: Multiple HTTPrequests send from one includetext statement Oliver Mailmerge 2 April 18th 05 09:46 AM
IncludeText gives Error! Not a valid filename on 'refresh' Lynn Allan Formatting Long Documents 2 March 9th 05 04:10 AM
IncludeText gives Error! Not a valid filename on 'refresh' Lynn Allan Microsoft Word Help 5 March 9th 05 04:09 AM


All times are GMT +1. The time now is 08:32 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"