با سلام
دوست عزیز در سال 2010 این مشکل برای کاربری بوجود میاد و در سال 2014 ( حدود 2 ماه پیش ) پاسخی عنوان شد که منجر به برطرف شدن مشکل گردید . این پاسخ رو تجزیه نمایید شاید مشکلتان برطرف شود . لازم به توضیح نیست که قبل از هر اقدامی ، یک کپی از فایل اصلی خود داشته باشید ( زحمت ترجمه آن با خودتان ) .
-------------------
I had the same problem using Excel 2013 on an .xlsx file with images inside comments.
I was able to get the document back to a working state, and at the same time see where the corruption is.
Here's what worked for me (summary: remove a couple of bogus tags in an embedded text file):
- take a backup of the file (just in case)
- open the file and accept Excel's tentative to recover the file
- note the full path of the "removed part" file, e.g. "/xl/drawings/vmlDrawing2.vml"
- close the file without saving
- rename the file to end with .zip (e.g. myExcelFile.xlsx.zip)
- open the zip file, it shows as a folder hierarchy (if you're curious to see where your images are stored, I found them fully readable under the following folder in the zip file: \xl\media\ )
- extract the problematic file found in step 3, e.g. "/xl/drawings/vmlDrawing2.vml"
- open it with Notepad
- if you want to see what is wrong with this file, you can copy and paste its whole text content to an online XML syntax checker (e.g. XML DOM - Validate XML). Mine showed duplicate attributes on a given line (once you correct a line, you can re-paste your corrected text to find the next error, and so on).
- Here's the bug I had: all the v:fill tags had multiple o:relid attributes, even a working file has multiple, and it shouldn't, but in the case of the broken file, one of those attributes is different from the others, e.g.: v:fill o:relid="rId3" o:relid="rId3" o:relid="rId3" o:relid="rId3" o:relid="rId3" o:relid="rId2" <--- note the "rId2" instead of ="rId3" like the rest of the line
- for each v:fill tag, remove all but the last o:relid (in the previous example, that part of the line would now be v:fill o:relid="rId2" )
- once you have verified this for each v:fill, the XML of the file should be ok (step 9), save the file and put it back in the zip (overwriting the original one)
- rename the Excel file to its original name (e.g. myExcelFile.xlsx) by removing the .zip extension added in step 5
- open the file with Excel, everything is back to normal
The error is probably due to changes that force renumbering of the existing images such as removing a line on which there is a comment with a picture on it (if it's not the last picture added) - I can reproduce the bug every time I remove one such line. We can see that just the last entry ("rId2") is corrected, the rest stay the same ("rId3"), and Excel can't cope with those different values for the same tag. To Microsoft: preventing multiple occurrences of the same attribute on a given tag should be the initial goal to solve this issue.
-------------------
علاقه مندی ها (Bookmarks)