WD: "Cannot Open File" Error in INCLUDETEXT Field

Last reviewed: February 3, 1998
Article ID: Q122193
The information in this article applies to:
  • Microsoft Word for the Macintosh, version 6.0, 6.0.1
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows
  • Microsoft Word 98 Macintosh Edition

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, this error occurs if you do not enclose the 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 : kbfield macword winword word6 word7 word8 word95 word97 macword98
Version : MACINTOSH:6.0
Platform : MACINTOSH
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 3, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.