我正在關注this link以嘗試自定義功能。下面的清單確實啓用自定義功能:同時具有自定義功能和任務窗格
<?xml version="1.0" encoding="utf-8"?>
<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>a124c024-2ae8-4d1a-bb00-7ff68c6fb738</Id>
<!-- Generate a new guid for your Id element -->
<Version>1.0.0.0</Version>
<ProviderName>Contoso</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Custom functions sample" />
<Description DefaultValue="A variety of sample custom functions." />
<Hosts>
<Host Name="Workbook" />
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://www.myweb.com/customfunctions.html"/>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Workbook">
<AllFormFactors>
<ExtensionPoint xsi:type="CustomFunctions">
<Script>
<SourceLocation resid="functionsjs" />
</Script>
<Page>
<SourceLocation resid="functionshtml"/>
</Page>
</ExtensionPoint>
</AllFormFactors>
</Host>
</Hosts>
<Resources>
<bt:Urls>
<bt:Url id="functionsjs" DefaultValue="https://www.myweb.com/customfunctions.js" />
<bt:Url id="functionshtml" DefaultValue="https://www.myweb.com/customfunctions.html" />
</bt:Urls>
</Resources>
</VersionOverrides>
</OfficeApp>
現在,我想知道是否有可能有自定義的功能,並在同一時間的任務窗格。所以我在https://www.myweb.com/customfunctions.html
中加了<body>this is the body</body>
。但是,重新加載外接程序不會使任務窗格顯示。
任何人都可以告訴我是否有可能同時具有自定義函數和任務窗格?我應該修改什麼來啓用此功能?
編輯1:更改xsi:type="VersionOverridesV1_0"
到xsi:type="TaskPaneApp"
沒有打開任務窗格,但是當我們試圖在自定義函數,錯誤'我們不能啓動此插件,因爲它沒有正確設置」升起。
所以我還在尋找一個妥善的解決辦法。