Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2016, 01:10 AM
shubhnagi1407 shubhnagi1407 is offline Not able to open Docx file in word 2013 Windows 7 64bit Not able to open Docx file in word 2013 Office 2013
Novice
Not able to open Docx file in word 2013
 
Join Date: Dec 2016
Posts: 3
shubhnagi1407 is on a distinguished road
Default Not able to open Docx file in word 2013

Hi,



I am working on a docx file which I am not able to open in word 2013 , although it can be opened in word 2007. I want to know what is the root cause of this so that I can prevent it from happening.

My file size is above 700KB, so can't attach it.

Thanks
Reply With Quote
  #2  
Old 12-26-2016, 04:43 PM
Guessed's Avatar
Guessed Guessed is online now Not able to open Docx file in word 2013 Windows 10 Not able to open Docx file in word 2013 Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Do you get a message that tells you why it can't be opened in Word 2013?

Have you tried using the Open and Recover option when using File > Open?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #3  
Old 12-26-2016, 11:05 PM
shubhnagi1407 shubhnagi1407 is offline Not able to open Docx file in word 2013 Windows 7 64bit Not able to open Docx file in word 2013 Office 2013
Novice
Not able to open Docx file in word 2013
 
Join Date: Dec 2016
Posts: 3
shubhnagi1407 is on a distinguished road
Default

Yes, I tried to recover the content but that doesn't work.
While opening it is giving error: We are sorry.We can't open "Doc name" because we found problem with its content.

I tried looking in document.xml of word document. It has some invalid content. In table cell property it has <w:noWrap w:val="0"/> In this noWrap node it is taking value "0" which is invalid , I suppose this might be the probable reason, if not, I want to know the reason why invalid xml is getting generated . What might be the cause of it.

If above provided reason is the cause then I want to know in which version of word <w:noWrap w:val="0"/> this was valid.
Reply With Quote
  #4  
Old 12-27-2016, 01:11 AM
macropod's Avatar
macropod macropod is offline Not able to open Docx file in word 2013 Windows 7 64bit Not able to open Docx file in word 2013 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

That suggests the document has one or more corrupt tables. Corrupt tables can often be 'repaired' by:
• converting the tables to text and back again;
• cutting & pasting them to another document that you save the document in RTF format, which you then close then re-open before copying them back to the source document; or
• saving the document in RTF format, closing the document then re-opening it and re-saving in the doc(x) format – or see the macro below:
Code:
Sub TableRepair()
'Macro to repair damaged tables by saving each table in an RTF-format file, then
' reinserting the table from the RTF-format file into the source document.
Application.ScreenUpdating = False
Dim Rng As Range, i As Long, RTFDoc As Document, strPath As String
With ActiveDocument
  strPath = .Path & "\"
  For i = .Tables.Count To 1 Step -1
    Set Rng = .Tables(i).Range
    Set RTFDoc = Documents.Add(Visible:=False)
    With RTFDoc
      .Range.FormattedText = Rng.FormattedText
      .SaveAs2 FileName:="strPath & RTFDoc.RTF", Fileformat:=wdFormatRTF, AddToRecentFiles:=False
      .Close
    End With
    Set RTFDoc = Documents.Open(FileName:="strPath & RTFDoc.RTF", AddToRecentFiles:=False, Visible:=False)
    Rng.Tables(1).Delete
    With RTFDoc
      Rng.FormattedText = .Tables(1).Range.FormattedText
      .Close
    End With
    Kill "strPath & RTFDoc.RTF"
  Next
End With
Set Rng = Nothing: Set RTFDoc = Nothing
Application.ScreenUpdating = True
End Sub
Since Word 2013 won't open the files, repairing the table(s) manually or by running the macro should be done in Word 2007.

For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 12-27-2016, 01:21 AM
shubhnagi1407 shubhnagi1407 is offline Not able to open Docx file in word 2013 Windows 7 64bit Not able to open Docx file in word 2013 Office 2013
Novice
Not able to open Docx file in word 2013
 
Join Date: Dec 2016
Posts: 3
shubhnagi1407 is on a distinguished road
Default

Thanks for the reply. I want to know what is the possible cause of this table being corrupt and xml node taking invalid value. I want to avoid generating these kind of documents programatically .
Can you me show how I can avoid running into these problems.

Thanks in advance.
Reply With Quote
  #6  
Old 12-27-2016, 01:37 AM
macropod's Avatar
macropod macropod is offline Not able to open Docx file in word 2013 Windows 7 64bit Not able to open Docx file in word 2013 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You're asking for something that's well-nigh impossible. Microsoft has never published anything to explain what causes any of the various forms of document corruption. Sometimes they release patches that remedy them, but still without explaining the cause. All the rest of us can do is devise means of remedying the corruption.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to open Docx file in word 2013 Macro to check the existence of a word docx file and create a new word file with specific content. staicumihai Word VBA 14 11-15-2016 01:42 AM
Cannot open docx in word 2016 lakshi Word 1 08-24-2016 04:54 AM
Not able to open Docx file in word 2013 Word will not open docx file - not enough memory mstratil Word 7 12-25-2015 03:27 PM
Not able to open Docx file in word 2013 I am unable to open documents in Word through their file location, only via Word itself (Word 2013) Duke Word 5 07-31-2015 08:30 AM
Open DOCX in Word 2007 & Open DOC in Word 2003 wilde_37 Office 0 02-03-2009 12:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft