Excel XML 格式打开工作簿SharePoint

本文由支持呈报工程师 的为一位高级工程师的一位高级工程师。本文由该文章撰写。

症状

当您 Microsoft Excel尝试从 SharePoint 文档库以 XML (XML 电子表格 200) 3 (打开 SharePoint 工作簿时,您会收到以下错误:

无法执行此操作,因为Office无法识别它给定的命令

解决方法

若要解决此问题,请根据你的应用程序的版本和内部版本使用以下注册表Office:

警告

如果注册表未执行属性,则编辑注册表可能会带来有害的副作用,因此使用此解决方法的风险由你自己承担。

Microsoft Installer (2013 Office 32)

[HKEY_CLASSES_ROOT .xml\OpenWithList\excel.exe]

@=""

[HKEY_CLASSES_ROOT\Applications\excel.exe\shell\edit\command]

@=" " C: \ Program Files (x86) \ Microsoft Office \ Office15 \EXCEL.EXE" /n " %1 " "

[HKEY_CLASSES_ROOT\Applications\excel.exe\SupportedTypes]

".xml"=""

Microsoft Installer Office 2016 (32 位)

[HKEY_CLASSES_ROOT .xml\OpenWithList\excel.exe]

@=""

[HKEY_CLASSES_ROOT\Applications\excel.exe\shell\edit\command]

@=" " C: \ Program Files Microsoft Office \ \ Office16 \EXCEL.EXE" /n " %1 " "

[HKEY_CLASSES_ROOT\Applications\excel.exe\SupportedTypes]

".xml"=""

Microsoft Installer Office 2016 (64 位)

[HKEY_CLASSES_ROOT .xml\OpenWithList\excel.exe]

@=""

[HKEY_CLASSES_ROOT\Applications\excel.exe\shell\edit\command]

@=" " C: \ Program Files Microsoft Office \ \ Office16 \EXCEL.EXE" /n " %1 " "

[HKEY_CLASSES_ROOT\Applications\excel.exe\SupportedTypes]

".xml"=""

32 位 Office 2016 (-To-Run)

[HKEY_CLASSES_ROOT\Applications\Excel.exe]

"FriendlyAppName"=" @C: \ Program Files \ Microsoft Office \ 根 \ VFS \ ProgramFilesCommonX86 \ Microsoft Shared \ Office16 \oregres.dll,-206"

[HKEY_CLASSES_ROOT\Applications\Excel.exe\shell]

[HKEY_CLASSES_ROOT\Applications\Excel.exe\shell\edit]

@=" @C: \ Program Files \ Microsoft Office \ 根 \ VFS \ ProgramFilesCommonX86 \ Microsoft Shared \ Office16 \oregres.dll,-1"

[HKEY_CLASSES_ROOT\Applications\Excel.exe\shell\edit\command]

@=" " \ C:Program Files Microsoft Office root \ \ \ Office16 \EXCEL.EXE" /n " %1 " "

[HKEY_CLASSES_ROOT\Applications\Excel.exe\SupportedTypes]

".xml"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\Applications\excel.exe\shell\edit\command]

@=" " \ C:Program Files Microsoft Office Root \ \ \ Office16 \EXCEL.EXE" /n " %1 " "

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\Applications\excel.exe\SupportedTypes]

".xml"=""

[HKEY_CLASSES_ROOT .xml\OpenWithList\Excel.exe]

@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes.xml\OpenWithList\excel.exe]

@=""

64 位 Office 2016 (-To-Run)

[HKEY_CLASSES_ROOT .xml\OpenWithList\Excel.exe]

@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes.xml\OpenWithList\excel.exe]

@=""

[HKEY_CLASSES_ROOT\Applications\Excel.exe]

"FriendlyAppName"=" @C: \ Program Files \ Microsoft Office根 \ \ VFS \ ProgramFilesCommonX64 \ Microsoft Shared \ Office16 \oregres.dll,-206"

[HKEY_CLASSES_ROOT\Applications\Excel.exe\shell]

[HKEY_CLASSES_ROOT\Applications\Excel.exe\shell\edit]

@=" @C: \ Program Files \ Microsoft Office \ 根 \ VFS \ ProgramFilesCommonX64 \ Microsoft Shared \ Office16 \oregres.dll,-1"

[HKEY_CLASSES_ROOT\Applications\Excel.exe\shell\edit\command]

@=" " \ C:Program Files Microsoft Office root \ \ \ Office16 \EXCEL.EXE" /n " %1 " "

[HKEY_CLASSES_ROOT\Applications\Excel.exe\SupportedTypes]

".xml"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\Applications\excel.exe\shell\edit\command]

@=" " \ C:Program Files Microsoft Office Root \ \ \ Office16 \EXCEL.EXE" /n " %1 " "

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\Applications\excel.exe\SupportedTypes]

".xml"=""