Microsoft KB Archive/918429

= How to troubleshoot damaged documents in Word 2007 =

Article ID: 918429

Article Last Modified on 12/5/2007

-

APPLIES TO


 * Microsoft Office Word 2007

-



SUMMARY
This article describes how to identify a damaged document in Microsoft Office Word 2007. Additionally, this article includes steps that explain how to recover the text and data that is contained in a document after you have identified the document as damaged.

This article is intended for a beginning to intermediate computer user.

You may find it easier to follow the steps if you print this article first.



Method 1: Check for strange behavior
Many damaged documents exhibit strange behavior. This behavior may be related to damage to the document or to the template on which the document is based. This behavior may include the following:
 * Repeatedly renumbers the existing pages in the document
 * Repeatedly redoes the page breaks in the document
 * Incorrect document layout and formatting
 * Unreadable characters on the screen
 * Error messages during processing
 * A computer that stops responding when you open the file
 * Any other unexpected behavior that cannot be attributed to the typical operation of the program

If the document shows any of these symptoms, or if you cannot open the document, go to method 2.

Method 2: Check other documents and programs
Sometimes, this behavior may be caused by factors other than document damage. To eliminate these other factors, follow these steps:  Look for similar behavior in other documents. Look for similar behavior in other 2007 Microsoft Office programs.

If any of these steps indicate that the problem is not in the document, you will then have to troubleshoot Word 2007, the 2007 Office suite, or the operating system that is running on the computer.



Step 1: Determine the template that is used by the document
 Open the problem document in Word 2007. Click the Microsoft Office Button, and then click Word Options. Click Add-Ins. In the Manage box, click Templates under View and manage Office add-ins</li> Click Go.</li></ol>

The Document template box will list the template that is used by the document. If the template listed is Normal, go to step 2. Otherwise, go to step 3.

Step 2: Rename the global template (Normal.dotm)
Follow the steps for the operating system that you are using:

Windows Vista  Exit Word 2007</li> Click Start .</li> In the Start Search box, type the following text, and then press ENTER:

%userprofile%\appdata\roaming\microsoft\templates

</li> Right-click Normal.dotm, and then click Rename.</li> Type Oldword.old, and then press ENTER.</li> Close Windows Explorer.</li> Start Word 2007, and then open the document.</li></ol>

Microsoft Windows XP  Exit Word 2007</li> Click Start, and then click Run.</li> In the Open box, type the following text, and then press ENTER:

%userprofile%\Application Data\Microsoft\Templates

</li> Right-click Normal.dotm, and then click Rename.</li> Type Oldword.old, and then press ENTER.</li> <li>Close Windows Explorer.</li></ol>

Step 3: Change the document template
<ol style="list-style-type: lower-alpha;"> <li>Open the problem document in Word 2007.</li> <li>Click the Microsoft Office Button, and then click Word Options.</li> <li>Click Add-Ins.</li> <li>In the Manage box, click Templates under View and manage Office add-ins, and then click Go.</li> <li>Click Attach.</li> <li>In the Templates folder, click Normal.dotm, and then click Open.</li> <li>Click OK to close the Templates and Add-ins dialog box.</li> <li>Exit Word 2007</li></ol>

Step 4: Verify that changing templates worked.
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

If the strange behavior persists, go to method 2.

Method 2: Start Word 2007 using default settings
You can use the /a switch to start Word 2007 by using only the default settings in Word 2007. When you use the /a switch, Word does not load any add-ins. Additionally, Word 2007 does not use your existing Normal.dotm template. Restart Word 2007 by using the /a switch.

Step 1: Start Word 2007 by using the /a switch
Windows Vista <ol style="list-style-type: lower-alpha;"> <li>Exit Word 2007</li> <li>Click Start .</li> <li>In the Start Search box, type the following text, and then press ENTER:

&quot;%programfiles%\microsoft office\office12\winword.exe&quot; /a

</li></ol>

Windows XP <ol style="list-style-type: lower-alpha;"> <li>Exit Word 2007</li> <li>Click Start, and then click Run.</li> <li>In the Open box, type the following text, and then press ENTER:

&quot;%programfiles%\microsoft office\office12\winword.exe&quot; /a

</li></ol>

Step 2: Open the document
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

If the strange behavior persists, go to method 3.

Step 1: Try a different printer driver
Windows Vista

Step a: Open Add Printer

 * 1) Click Start vistastartbutton.jpg], and then click Printers.
 * 2) Click Add a printer.

Step b: Add a new printer

 * 1) In the Add Printer dialog box, click Add a local printer.
 * 2) Click Use an existing port, and then click Next.
 * 3) In the Manufacturer list, click Microsoft.
 * 4) Click Microsoft XPS Document Writer, and then click Next.
 * 5) Click Use the driver that is currently installed (recommended), and then click Next.
 * 6) Click to select the Set as the default printer check box, and then click Next.
 * 7) Click Finish.

Windows XP

Step a: Open Add Printer

 * 1) Click Start, and then click Printers and Faxes.
 * 2) Under Printer Tasks, click Add a printer.

Step b: Add a new printer
After you install the following patches, the Microsoft XPS Document Writer icon automatically appears in the Printers and FAXes folder.
 * 1) Install Microsoft .NET Framework 3.0.
 * 2) Install Microsoft Core XML Services (MSXML) 6.0.
 * 3) Install Microsoft XPS Essentials Pack.

For more information about how to install the above XPS related patches, visit the following Microsoft Web site:

http://www.microsoft.com/whdc/xps/viewxps.mspx

Step 2: Verify that changing printer drivers fixes the problem
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

If the strange behavior persists, go to step 3.

Step 3: Reinstall original printer driver.
Windows Vista <ol style="list-style-type: lower-alpha;"> <li>Click Start, and then click Printers.</li> <li>Right-click the original default printer, and then click Delete.

If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.</li> <li>If you are prompted to remove all the files that are associated with the printer, click Yes.</li> <li>Click Add a printer, and then follow the instructions in the Add Printer Wizard to reinstall the printer driver.</li></ol>

Windows XP <ol style="list-style-type: lower-alpha;"> <li>Click Start, and then click Printers and Faxes.</li> <li>Right-click the original default printer, and then click Delete.</li> <li>If you are prompted to remove all the files that are associated with the printer, click Yes.</li> <li>Under Printer Tasks, click Add a printer, and then follow the instructions in the Add Printer Wizard to reinstall the printer driver.</li></ol>

Step 4: Verify that changing printer drivers fixes the problem
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

If the strange behavior persists, go to method 4.

Step 1: Start Windows in safe mode
Windows Vista <ol style="list-style-type: lower-alpha;"> <li>Remove all floppy disks, CDs, and DVDs from your computer, and then restart the computer.</li> <li>Click Start, click the arrow next to Lock, and then click Restart.</li> <li>Use one of the following procedures: <ul> <li>If your computer has a single operating system installed, press and hold the F8 key as the computer restarts. You must press F8 before the Windows logo appears. If the Windows logo appears, you must try again by waiting until the Windows logon prompt appears, and then shutting down and restarting the computer.</li> <li>If your computer has more than one operating system, use the arrow keys to highlight the operating system that you want to start in safe mode, and then press F8.</li></ul> </li> <li>On the Advanced Boot Options screen, use the arrow keys to select Safe Mode, and then press ENTER.</li> <li>Log on to your computer by using a user account that has administrator rights.</li></ol>

Windows XP <ol style="list-style-type: lower-alpha;"> <li>Remove all floppy disks, CDs, and DVDs from your computer, and then restart the computer.</li> <li>Click Start, and then click Shut Down.</li> <li>In the What do you want the computer to do list, click Restart, and then click OK.</li> <li>Hold down the CTRL key as you restart the computer.</li> <li>When you see the Starting Windows message, press F8, use the arrow keys to select Safe Mode on the Startup menu, and then press ENTER.</li></ol>

Step 2: Verify that starting in safe mode fixes the problem.
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

If the strange behavior persists, restart Windows, and then go to method 5.

Step 1: Repair document

 * 1) Click the Microsoft Office Button, and then click Open.
 * 2) In the Open dialog box, click your Word 2007 document.
 * 3) Click the arrow on the Open button, and then click Open and Repair.

Step 2: Verify that repairing the document fixes the problem
Verify that the strange behavior no longer occurs. If the strange behavior persists, restart Windows, and then go to method 6.

Step 1: Open the document
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

Step 2: Save the document in a different file format
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click Save as.</li> <li>Click Other Formats.</li> <li>In the Save as file type list, click Rich Text Format (*.rtf).</li> <li>Click Save.</li> <li>Click the Microsoft Office Button, and then click Close.</li></ol>

Step 3: Open the document, and then convert document back to Word 2007 file format
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the converted document, and then click Open.</li> <li>Click the Microsoft Office Button, and then click Save as.</li> <li>Click Document.</li> <li>Rename the document's file name, and then click Save.</li></ol>

Step 4: Verify that converting the document file format fixes the problem
Verify that the strange behavior no longer occurs. If the behavior persists, try to save the file in another file format. Repeat step 1 to step 4, and then try to save the file in the following file formats, in the following order:
 * Web page (.htm; .html)
 * Any other word processing format
 * Plain Text (.txt)

Note When you save files in the Plain Text (.txt) format, you may resolve the document damage problem. However, all document formatting, macro code, and graphics are lost. When you save files in the Plain Text (.txt) format, you must reformat the document. Therefore, use the Plain Text (.txt) format only if the other file formats do not resolve the problem.

If the strange behavior persists, go to method 7.

Step 1: Create a new document
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click New.</li> <li>Click Blank document, and then click Create.</li></ol>

Step 2: Open the damaged document
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

Step 3: Copy the contents of document, and then paste the contents into the new document
Note If your document contains section breaks, copy only the text between the sections breaks. Do not copy the section breaks because this may bring the damage into your new document. Change the document view to draft view when you copy and paste between documents to avoid transferring section breaks. To change to draft view, on the View tab, click Draft in the Document Views group. <ol style="list-style-type: lower-alpha;"> <li>In the damaged document, press CTRL+END, and then press CTRL+SHIFT+HOME.</li> <li>On the Home tab, click Copy in the Clipboard group.</li> <li>On the View tab, click Switch Windows in the Window group.</li> <li>Click the new document that you created in step 1.</li> <li>On the Home tab, click Paste in the Clipboard group.</li></ol>

If the strange behavior persists, go to method 8.

Step 1: Create a new document
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click New.</li> <li>Click Blank document, and then click Create.</li></ol>

Step 2: Open the damaged document
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

Step 3: Copy the undamaged parts of document, and then paste the undamaged parts to the new document
Note If your document contains section breaks, copy only the text between the sections breaks. Do not copy the section breaks because this may bring the damage into your new document. Change the document view to draft view when you copy and paste between documents to avoid transferring section breaks. To change to draft view, on the View tab, click Draft in the Document Views group. <ol style="list-style-type: lower-alpha;"> <li>In the damaged document, locate and then select an undamaged part of the document's contents.</li> <li>On the Home tab, click Copy in the Clipboard group.</li> <li>On the View tab, click Switch Windows in the Window group.</li> <li>Click the new document that you created in step 1.</li> <li>On the Home tab, click Paste in the Clipboard group.</li> <li>Repeat steps 3a to 3e for each undamaged part of the document. You must reconstruct the damaged sections of your document.</li></ol>

Method 9: Switch the document view to remove the damaged content
If the document appears to be truncated (not all pages in the document are displayed), it might be possible to switch the document view and remove the damaged content from the document. <ol> <li>Determine the page number on which the damaged content is causing the document to appear to be truncated. <ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li> <li>Scroll to view the last page that is displayed before the document appears to be truncated. Note the content that appears on that page.</li></ol> </li> <li>Switch views, and then remove the damaged content. <ol style="list-style-type: lower-alpha;"> <li>On the View tab in the Document Views group, click Web Layout or Draft view.</li> <li>Scroll to view the content that was displayed before the document appeared to be truncated.</li> <li>Select and delete the next paragraph, table, or object in the file.</li> <li>On the View tab in the Document Views group, click Print Layout. If the document continues to appear to be truncated, continue to switch views and delete content until the document no longer appears truncated in Print Layout view.</li> <li>Save the document.</li></ol> </li></ol>

<div class="whattotry_section">

Step 1: Configure Word 2007
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007</li> <li>On the View tab, click Draft in the Document Views group.</li> <li>Click the Microsoft Office Button, and then click Word Options.</li> <li>In the Display document content section, click to select the Draft font and Picture placeholders check boxes under Advanced options for working with Word.</li> <li>In the General section, click to clear the Update automatic links at Open check box under Advanced options for working with Word. Then, click OK.</li></ol>

Step 2: Open the damaged document
<ol style="list-style-type: lower-alpha;"> <li>Start Word 2007.</li> <li>Click the Microsoft Office Button, and then click Open.</li> <li>Click the damaged document, and then click Open.</li></ol>

If you can open the document, close the document and then reopen it by using method 6, and repair the document. Otherwise go to method 2.

Step 1: Create a new blank document
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click New.</li> <li>Click Blank document, and then click Create.</li></ol>

Note You may have to reapply some formatting to the last section of the new document.

Step 2: Insert the damaged document into the new document

 * 1) On the Insert tab, click Insert Object, and then click Text From File.
 * 2) In the Insert File dialog box, locate and then click the damaged document. Then, click Insert.

Note You may have to reapply some formatting to the last section of the new document.

Step 1: Create blank document
<ol style="list-style-type: lower-alpha;"> <li>Click the Microsoft Office Button, and then click New.</li> <li>Click Blank document, and then click Create.</li> <li>In the new document, type This is a test .</li> <li>Click the Microsoft Office Button, and then click Save.</li> <li>Type Rescue link, and then click Save.</li></ol>

Step 2: Create link
<ol style="list-style-type: lower-alpha;"> <li>Select the text you typed in step 1c.</li> <li>On the Home tab, click Copy in the Clipboard group.</li> <li>Click the Microsoft Office Button, and then click New.</li> <li>Click Blank document, and then click Create.</li> <li>On the Home tab, click the arrow on the Paste button in the Clipboard group, and then click Paste Special.</li> <li>Click Paste link, click Formatted Text (RTF).</li> <li>Click OK.</li></ol>

Step 3: Change the link to the damaged document
<ol style="list-style-type: lower-alpha;"> <li>Right-click the linked text, point to Linked Document Object, and then click Links.</li> <li>In the Links dialog box, click the file name of the linked document, and then click Change Source.</li> <li>In the Change Source dialog box, click the document that you cannot open, and then click Open.</li> <li>Click OK to close the Links dialog box.

Note The information from the damaged document will appear if there was any recoverable data or text.</li> <li>Right-click the linked text, point to Linked Document Object, and then click Links.</li> <li>In the Links dialog box, click Break Link.</li> <li>When you receive the following message, click Yes:

Are you sure you want to break the selected links?

</li></ol>

Method 4: Use the &quot;Recover Text from Any File&quot; converter
Note The &quot;Recover Text from Any File&quot; converter has limitations. For example, document formatting is lost. Additionally, graphics, fields, drawing objects, and any other items that are not text are lost. However, field text, headers, footers, footnotes, and endnotes are retained as simple text.
 * 1) Click the Microsoft Office Button, and then click Open.
 * 2) In the Files of type box, click Recover Text from Any File(*.*).
 * 3) Click the document from which you want to recover the text.
 * 4) Click Open.

After the document is recovered by using the &quot;Recover Text from Any File&quot; converter, there is some binary data text that is not converted. This text is primarily at the start and end of the document. You must delete this binary data text before you save the file as a Word document.

Additional query words: word2007 word2k7 word12 wd2007 wd2k7 wd12

Keywords: kbproductlink kbprb kbinfo kbnomt kbceip kbcorrupt kbopenfile kbtshoot kbexpertisebeginner kbhowto KB918429

-

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

© Microsoft Corporation. All rights reserved.