The specific method is as follows:
1. Press the WIN R shortcut key to open Run, enter regedit, click OK to open the Registry Editor;
2. Find the .xls and .xlsx folders under HKEY_CLASSES_ROOT
Note: If we find that there is no ET.Xls.6 in the .xls folder folder, then we right-click .xls, select New Item, name it ET.Xls.6, and then create a new item in ET.Xls.6 and name it ShellNew.
3. Create a new string value (S) in the ShellNew folder, name it FileName, then double-click FileName and change it to your Office installation directory, for example, here is: C:\Program Files (x86)\Microsoft Office\root\VFS\Windows\SHELLNEW\EXCEL12.XLSX;
We can enter this directory first to see if there is an EXCEL12.XLSX file
4. Similarly, in ShellNew under Excel.Sheet.12 under .xlsx, also modify the value of FileName to: C:\Program Files (x86)\Microsoft Office\root\VFS\Windows\SHELLNEW\EXCEL12.XLSX is enough.
Finish!
Recommended tutorial: excel tutorial
The above is the detailed content of What should I do if the file format and extension of the excel table do not match?. For more information, please follow other related articles on the PHP Chinese website!