Office js Excel自定义函数:类型错误:在windows桌面、联机工作和mac(桌面和联机)上的网络请求失败
在联机版本(windows/mac)和桌面版本(mac)中实现了excel加载项自定义功能。windows桌面版本中的自定义函数失败 已验证desktop office版本号,并且根据Microsoft文档支持该版本号 每个实现的自定义函数将调用一个服务器调用 进一步调试得到“TypeError:网络请求失败”错误。不知道为什么它只在windows桌面excel中失败 在舱单中跟随Office js Excel自定义函数:类型错误:在windows桌面、联机工作和mac(桌面和联机)上的网络请求失败,office-js,office-addins,custom-functions-excel,Office Js,Office Addins,Custom Functions Excel,在联机版本(windows/mac)和桌面版本(mac)中实现了excel加载项自定义功能。windows桌面版本中的自定义函数失败 已验证desktop office版本号,并且根据Microsoft文档支持该版本号 每个实现的自定义函数将调用一个服务器调用 进一步调试得到“TypeError:网络请求失败”错误。不知道为什么它只在windows桌面excel中失败 在舱单中跟随 <?xml version="1.0" encoding="UTF-8&quo
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/
1.0"
xmlns:ov=
"http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
<Id>0e97108b-0e3b-484c-9ee8-24c4ac0e0eb8</Id>
<Version>1.0.0.0</Version>
<ProviderName>CFS</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="CFS"/>
<Description DefaultValue="CFS functions"/>
<IconUrl DefaultValue="https://localhost:3000/assets/FS-
Favicon.png"/>
<HighResolutionIconUrl
DefaultValue="https://localhost:3000/assets/FS-Favicon.png"/>
<SupportUrl DefaultValue="https://www.cfs.com/help"/>
<AppDomains>
<AppDomain>https://www.cfs.com</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Workbook"/>
</Hosts>
<Requirements>
<Sets DefaultMinVersion="1.1">
<Set Name="CustomFunctionsRuntime" MinVersion="1.1"/>
</Sets>
</Requirements>
<DefaultSettings>
<SourceLocation
DefaultValue="https://localhost:3000/taskpane.html"/>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Workbook">
<!-- <Runtimes>
<Runtime resid="CFS.Functions.Url" lifetime="long" />
</Runtimes> -->
<AllFormFactors>
<ExtensionPoint xsi:type="CustomFunctions">
<Script>
<SourceLocation resid="Functions.Script.Url"/>
</Script>
<Page>
<SourceLocation resid="Functions.Page.Url"/>
</Page>
<Metadata>
<SourceLocation resid="Functions.Metadata.Url"/>
</Metadata>
<Namespace resid="Functions.Namespace"/>
</ExtensionPoint>
</AllFormFactors>
<DesktopFormFactor>
<GetStarted>
<Title resid="GetStarted.Title"/>
<Description resid="GetStarted.Description"/>
<LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
</GetStarted>
<FunctionFile resid="Commands.Url"/>
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<CustomTab id="CFS.Tab">
<Group id="CFS.Tab1.Group1">
<Label resid="CFS.Tab1.GroupLabel" />
<Icon>
<bt:Image size="16" resid="Icon.16x16"/>
<bt:Image size="32" resid="Icon.32x32"/>
<bt:Image size="80" resid="Icon.80x80"/>
</Icon>
<Control xsi:type="Button" id="CFS.FunctionsButton">
<!-- <OverriddenByRibbonApi>true</OverriddenByRibbonApi> -->
<!-- <Enabled>false</Enabled> -->
<Label resid="CFS.FunctionsButton.Label" />
<Supertip>
<Title resid="CFS.FunctionsButton.Label"/>
<Description resid="CFS.FunctionsButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="functions.16x16"/>
<bt:Image size="32" resid="functions.32x32"/>
<bt:Image size="80" resid="functions.80x80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="CFS.Functions.Url"/>
</Action>
</Control>
<Control xsi:type="Button" id="CFS.AccountButton">
<Label resid="CFS.AccountButton.Label" />
<Supertip>
<Title resid="CFS.AccountButton.Label"/>
<Description resid="CFS.AccountButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="account-management.16x16"/>
<bt:Image size="32" resid="account-management.32x32"/>
<bt:Image size="80" resid="account-management.80x80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>manageAccount</FunctionName>
<!-- <Action xsi:type="ShowTaskpane"> -->
<!-- <TaskpaneId>ButtonId1</TaskpaneId> -->
<!-- <SourceLocation resid="CFS.Account.Url"/> -->
</Action>
</Control>
</Group>
<Label resid="CFS.Tab.TabLabel" />
</CustomTab>
<!-- <OfficeTab id="TabHome">
<Group id="CommandsGroup">
<Label resid="CommandsGroup.Label"/>
<Icon>
<bt:Image size="16" resid="Icon.16x16"/>
<bt:Image size="32" resid="Icon.32x32"/>
<bt:Image size="80" resid="Icon.80x80"/>
</Icon>
<Control xsi:type="Button" id="TaskpaneButton">
<Label resid="TaskpaneButton.Label"/>
<Supertip>
<Title resid="TaskpaneButton.Label"/>
<Description resid="TaskpaneButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16"/>
<bt:Image size="32" resid="Icon.32x32"/>
<bt:Image size="80" resid="Icon.80x80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="Taskpane.Url"/>
</Action>
</Control>
</Group>
</OfficeTab> -->
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16" DefaultValue="https://localhost:3000/assets/icon-16.png"/>
<bt:Image id="Icon.32x32" DefaultValue="https://localhost:3000/assets/icon-32.png"/>
<bt:Image id="Icon.80x80" DefaultValue="https://localhost:3000/assets/icon-80.png"/>
<bt:Image id="functions.16x16" DefaultValue="https://localhost:3000/assets/functions-16.png"/>
<bt:Image id="functions.32x32" DefaultValue="https://localhost:3000/assets/functions-16.png"/>
<bt:Image id="functions.80x80" DefaultValue="https://localhost:3000/assets/functions-16.png"/>
<bt:Image id="account-management.16x16" DefaultValue="https://localhost:3000/assets/account-management-16.png"/>
<bt:Image id="account-management.32x32" DefaultValue="https://localhost:3000/assets/account-management-16.png"/>
<bt:Image id="account-management.80x80" DefaultValue="https://localhost:3000/assets/account-management-16.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="Functions.Script.Url" DefaultValue="https://localhost:3000/dist/functions.js"/>
<bt:Url id="Functions.Metadata.Url" DefaultValue="https://localhost:3000/dist/functions.json"/>
<bt:Url id="Functions.Page.Url" DefaultValue="https://localhost:3000/dist/functions.html"/>
<bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812"/>
<bt:Url id="Commands.Url" DefaultValue="https://localhost:3000/commands.html"/>
<!-- <bt:Url id="Taskpane.Url" DefaultValue="https://localhost:3000/taskpane.html"/> -->
<bt:Url id="CFS.Functions.Url" DefaultValue="https://localhost:3000/dist/cfs.html"/>
<bt:Url id="CFS.Account.Url" DefaultValue="https://localhost:3000/dist/cfs-auth-management.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="Functions.Namespace" DefaultValue="CFS"/>
<bt:String id="GetStarted.Title" DefaultValue="CFS add-in!"/>
<!-- <bt:String id="CommandsGroup.Label" DefaultValue="Commands Group"/> -->
<bt:String id="CFS.Tab.TabLabel" DefaultValue="CFS"/>
<bt:String id="CFS.Tab1.GroupLabel" DefaultValue="Manage CFS"/>
<bt:String id="CFS.FunctionsButton.Label" DefaultValue="Insert Functions"/>
<bt:String id="CFS.AccountButton.Label" DefaultValue="Manage Account"/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="GetStarted.Description" DefaultValue="Loaded succesfully."/>
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane"/>
<bt:String id="CFS.FunctionsButton.Tooltip" DefaultValue="Click to view functions"/>
<bt:String id="CFS.AccountButton.Tooltip" DefaultValue="Manage Account"/>
</bt:LongStrings>
</Resources>
0e97108b-0e3b-484c-9ee8-24c4ac0e0eb8
1.0.0.0
CFS
恩美
https://www.cfs.com
读写文件
按钮1
管理帐户
任何帮助,为什么只有在windows桌面office excel中才会失败。您注意到任何错误吗?您可以共享桌面Excel版本(Excel->Account->About Excel)吗?如果您可以共享清单文件,这对调试非常有帮助。Windows excel版本2104(Build 13929.20296)。已使用清单更新描述。无错误。在进一步调试时,“TypeError:网络请求失败”错误正在阻止此功能。不确定为什么仅在windows桌面excel中发生这种情况。看起来您的本地环回已禁用。您需要启用本地环回异常。详情请参阅:它不起作用。问题似乎与excel自定义函数中的CORS请求有关。正在尝试实现中所述的sharedRuntime。