Excel 2007 error: Different format than specified by the file extension
Written by Christian on March 17, 2008 – 9:48 amIn some cases after upgrading to Excel 2007, you may get the following error:
The file you are trying to open .xlsx is in a different format than specified by the file extension. verify the file is not corrupted and is from trusted source before opening the file. Do you want to open the file now?
This errors particularly occurs when you’re trying to open an XLS file (Excel 2000-2003) with Excel 2007. In most cases, the problem can be solved by defining MIME types and associating them with extensions.
When you’re using a Document Management System (like Sharepoint or Livelink), you can try adding these:
.xls = application/msexcel
.xlsx = application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
However, if you don’t want to look for a solution, but just want to solve the problem, insert this key in your registry to suppress the notification:
[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Excel\Security]
“ExtensionHardening”=dword:00000000
You can accomplish the above by doing the following:
- Open your Registry (Start -> Run -> regedit.exe)
- Navigate to HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\OFFICE\12.0\EXCEL\SECURITY
- Right click in the right window and choose New -> DWORD
- Type “ExtensionHardening” as the name (without the quotes)
- Verify that the data has the value “0″
People who read this article, also read:
- Packaging Adobe Photoshop Elements 6
- Howto: Repair Power schemes
- Compile Error in Hidden Module: Distmon in Excel 2003 and 2007
Posted in Excel 2007 |
May 21st, 2008 at 10:44 am
Hi,
Your solution really worked.Its excellent.
Thanks,
Amber Bhatnagar.
May 28th, 2008 at 11:59 am
Hi ,
I have already tried the above solution , it’s working. But i want the solution in the way that from the jsp code. If you find any solution
i will be very happy.
Thanks,
vasanth.
July 1st, 2008 at 4:27 am
Thanks a lot.
July 4th, 2008 at 12:23 pm
Its working!!!!! wonderful….
August 22nd, 2008 at 3:42 pm
Thank you! As a non techie…your instructions were great! It took care of the problem.