WD: "Cannot Open File" Error in INCLUDETEXT Field
Article ID: 122193
Article Last Modified on 8/16/2005
APPLIES TO
- Microsoft Word 6.0 for Macintosh
- Microsoft Word 6.01 for Macintosh
- Microsoft Word 95 Standard Edition
- Microsoft Word 95a
- Microsoft Word 98 for Macintosh
This article was previously published under Q122193
SYMPTOMS
When you insert an INCLUDETEXT field in a Microsoft Word document, the
following error message appears in place of the field results:
Error! Cannot open file.
CAUSE
When you manually insert an INCLUDETEXT field in your document, and the
path has a space in the folder or file name, this error occurs if you
do not enclose the path and file name in quotation marks.
WORKAROUND
You must enclose the file name argument for an INCLUDETEXT field in
quotation marks if there are spaces in any part of the path or file name.
Example of Incorrect IncludeText Field:
In Word for Windows - {INCLUDETEXT c:\\my documents\\test.doc}
In Word for Macintosh - {INCLUDETEXT Macintosh HD:documents:test}
Example of Correct IncludeText Field:
In Word for Windows - {INCLUDETEXT "c:\\my documents\\test.doc"}
In Word for Macintosh - {INCLUDETEXT "Macintosh HD:documents:test"}
Additional query words: fields documentation error
Keywords: kbprb kbfield KB122193