Microsoft KB Archive/139849

= WD97: Err Msg: "Word Cannot Open Document" with Long File Name =

Article ID: 139849

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q139849







SYMPTOMS
You may receive the following series of error messages when you double-click the "New Microsoft Word Document.doc" icon on your desktop:

Word cannot open the document C:\Windows\Desktop\New.doc

Word cannot open the document C:\Windows\Desktop\Microsoft.doc

Word cannot open the document C:\Windows\Desktop\Word.doc

Word cannot open the document C:\Windows\Desktop\Document.doc

This icon is created when you use the right mouse button to click (right-click) the Windows 95 desktop, point to New, and then click Microsoft Word Document.

NOTE: These error messages may also occur in Windows Explorer when you try to start a document with a long file name if the file name contains spaces.



CAUSE
The registry contains a string value with an incorrect value data string, as in the following examples:

C:\Msoffice\Winword\Winword.exe /n

-or-

C:\Msoffice\Winword\Winword.exe /n %1

In these examples, the %1 represents a file name. Because the %1 is not part of the statement (first example) or is not enclosed in quotation marks (second example), each word in the long file name is interpreted as a single document. As a result, the file name "New Microsoft Word Document.doc" may be interpreted as four documents, not one. Because Word cannot locate these four documents, it displays the error messages.



RESOLUTION
NOTE: Because there are several versions of Windows, the following steps may be different on your computer. If they are, please consult your product documentation to complete these steps.

To correct the registry, follow these steps:  In Windows, right-click the Start button, and click Explore. In Windows Explorer, click Options on the View menu. In the Options dialog box, click the File Types tab. Under Registered File Types, select Microsoft Word Document, and click Edit.

 In the Edit File Type dialog box, under Actions, select Open, and then click Edit. In the Editing action for type dialog box, the Application used to perform action line should point to \Winword.exe; for example:

"C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\WINWORD.EXE" /n %1

NOTE: The %1 may or may not be present on this line.

Change the above line to the following:

"C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\WINWORD.EXE" /n "%1"

NOTE: The %1 must be enclosed in quotation marks. If the %1 is not on the above line, add the %1 with the quotation marks.

</li> Click OK to close the Editing action for type dialog box.</li> Click Close to close the Edit File Type dialog box.</li> Click Close to close the Options dialog box.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

MORE INFORMATION
Errors similar to those listed in the Symptoms section of this article will appear for any program that has an invalid registry entry, such as that described in the Cause section of this article. Other programs that appear on the shortcut menu when you click New include:

Text Document

Bitmap Image

Wave Sound

Microsoft PowerPoint Presentation

Microsoft Excel Worksheet

Microsoft Office Binder

Microsoft Publisher Document

You may also encounter these errors in Windows Explorer when you double-click any file that has an undefined file name extension. Windows 95 will prompt you with an Open With dialog box, so you can choose which program you want to use to open the file.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

133217 How to Create Multiple Associations for One File Name Extension

Additional query words: cannot can not open document truncates file name text.txt document.txt bitmap.bmp image.bmp wave.wav sound.wav microsoft.ppt microsoft.xls microsoft.obd microsoft.pub powerpoint.ppt presentation.ppt excel.xls worksheet.xls office.obd binder.obd publisher.put document.pub new.doc microsoft.doc word.doc document.doc error message lfn space

Keywords: kberrmsg kbfaq kbnetwork kbnofix kbprb KB139849

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.