WD2000: "Cannot Open File" Error in INCLUDETEXT Field (212060)



The information in this article applies to:

  • Microsoft Word 2000

This article was previously published under Q212060

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

This message appears if any of the following conditions is true:
  • The file does not exist in the path specified.

    -or-
  • The file path has a space in the folder or file name, similar to the following examples:

    {INCLUDETEXT c:\\my<space>documents\\test.doc}

    -or-

    {INCLUDETEXT c:\\my<space>test.doc}

    -or-

  • The file path has a single backslash rather than double backslashes separating the folder and/or file name, similar to this:

    {INCLUDETEXT "c:\my documents\test.doc"}

RESOLUTION

Make sure the file is located in the path you specified in the INCLUDETEXT field. If it is not, move it to this location or change the path in the INCLUDETEXT field so that it points to the correct location.

If the file is located in the path you specified in the INCLUDETEXT field, and the path contains one or more spaces in either the folder or file name, enclose the path in quotation marks, like this:

{INCLUDETEXT "C:\\My Documents\\Test.doc"}

If the file is located in the path you specified in the INCLUDETEXT field, and the path contains one or more single backslashes, change these to double backslashes, like this:

{INCLUDETEXT C:\\Documents\\Word\\Test.doc}


Modification Type:MajorLast Reviewed:12/6/2000
Keywords:kbfield kbprb KB212060