-1
我正在爲使用Visual Studio的Excel開發Taskpane插件。它工作正常,當我F5並從VS運行,我看到它負載,並在HOME功能區上有一個任務窗格按鈕。但是,當我嘗試從Excel 2016加載清單(使用共享文件夾和全部)時,它表示已成功加載,但沒有側面板,也沒有HOME色帶上的按鈕。當我在Excel Online中加載我的manifest.xml時,它也顯示正常。嘗試在Mac上加載Excel 2016上的manifest.xml時遇到同樣的問題。功能區中缺少任務窗格按鈕
喬恩
[此外Manifest.xml文件]
<?xml version="1.0" encoding="UTF-8"?> <!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8--> <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">
<!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. -->
<!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. --> <Id>8da22257-5b8b-4ad2-bda4-b5a62176bad9</Id>
<!--Version. Updates from the store only get triggered if there is a version change. --> <Version>1.0.4</Version> <ProviderName>XLShare</ProviderName> <DefaultLocale>en-US</DefaultLocale> <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. --> <DisplayName DefaultValue="XLShare" /> <Description DefaultValue="XLShare Excel Addin"/> <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. --> <IconUrl DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare32x32.png" />
<SupportUrl DefaultValue="https://xlsharedev.xlshare.net" /> <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. --> <AppDomains>
<AppDomain>https://xlsharedev.azurewebsites.net</AppDomain>
<AppDomain>AppDomain2</AppDomain>
<AppDomain>AppDomain3</AppDomain> </AppDomains> <!--End Basic Settings. -->
<!--Begin TaskPane Mode integration. This section is used if there are no VersionOverrides or if the Office client version does not support add-in commands. --> <Hosts>
<Host Name="Workbook" /> </Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Home.aspx" /> </DefaultSettings> <!-- End TaskPane Mode integration. -->
<Permissions>ReadWriteDocument</Permissions>
<!-- Begin Add-in Commands Mode integration. --> <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<!-- The Hosts node is required. -->
<Hosts>
<!-- Each host can have a different set of commands. -->
<!-- Excel host is Workbook, Word host is Document, and PowerPoint host is Presentation. -->
<!-- Make sure the hosts you override match the hosts declared in the top section of the manifest. -->
<Host xsi:type="Workbook">
<!-- Form factor. Currently only DesktopFormFactor is supported. -->
<DesktopFormFactor>
<!--"This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install."-->
<GetStarted>
<!-- Title of the Getting Started callout. The resid attribute points to a ShortString resource -->
<Title resid="XLShare.GetStarted.Title"/>
<!-- Description of the Getting Started callout. resid points to a LongString resource -->
<Description resid="XLShare.GetStarted.Description"/>
<!-- Points to a URL resource which details how the add-in should be used. -->
<LearnMoreUrl resid="XLShare.GetStarted.LearnMoreUrl"/>
</GetStarted>
<!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called.
Think of the FunctionFile as the code behind ExecuteFunction. -->
<FunctionFile resid="XLShare.DesktopFunctionFile.Url" />
<!-- PrimaryCommandSurface is the main Office Ribbon. -->
<ExtensionPoint xsi:type="PrimaryCommandSurface">
<!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
<OfficeTab id="TabHome">
<!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name.
-->
<Group id="XLShare.Group1">
<!-- Label for your group. resid must point to a ShortString resource. -->
<Label resid="XLShare.Group1Label" />
<!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX.
-->
<!-- Use PNG icons. All URLs on the resources section must use HTTPS. -->
<Icon>
<bt:Image size="16" resid="XLShare.tpicon_16x16" />
<bt:Image size="20" resid="XLShare.tpicon_20x20" />
<bt:Image size="24" resid="XLShare.tpicon_24x24" />
<bt:Image size="32" resid="XLShare.tpicon_32x32" />
<bt:Image size="16" resid="XLShare.tpicon_40x40" />
<bt:Image size="16" resid="XLShare.tpicon_48x48" />
<bt:Image size="16" resid="XLShare.tpicon_64x64" />
<bt:Image size="80" resid="XLShare.tpicon_80x80" />
</Icon>
<!-- Control. It can be of type "Button" or "Menu". -->
<Control xsi:type="Button" id="XLShare.TaskpaneButton">
<Label resid="XLShare.TaskpaneButton.Label" />
<Supertip>
<!-- ToolTip title. resid must point to a ShortString resource. -->
<Title resid="XLShare.TaskpaneButton.Label" />
<!-- ToolTip description. resid must point to a LongString resource. -->
<Description resid="XLShare.TaskpaneButton.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="XLShare.tpicon_16x16" />
<bt:Image size="20" resid="XLShare.tpicon_20x20" />
<bt:Image size="24" resid="XLShare.tpicon_24x24" />
<bt:Image size="32" resid="XLShare.tpicon_32x32" />
<bt:Image size="16" resid="XLShare.tpicon_40x40" />
<bt:Image size="16" resid="XLShare.tpicon_48x48" />
<bt:Image size="16" resid="XLShare.tpicon_64x64" />
<bt:Image size="80" resid="XLShare.tpicon_80x80" />
</Icon>
<!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<!-- Provide a URL resource id for the location that will be displayed on the task pane. -->
<SourceLocation resid="XLShare.Taskpane.Url" />
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<!-- You can use resources across hosts and form factors. -->
<Resources>
<bt:Images>
<bt:Image id="XLShare.tpicon_16x16" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare16x16.png" />
<bt:Image id="XLShare.tpicon_20x20" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare20x20.png" />
<bt:Image id="XLShare.tpicon_24x24" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare24x24.png" />
<bt:Image id="XLShare.tpicon_32x32" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare32x32.png" />
<bt:Image id="XLShare.tpicon_40x40" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare40x40.png" />
<bt:Image id="XLShare.tpicon_48x48" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare48x48.png" />
<bt:Image id="XLShare.tpicon_64x64" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare64x64.png" />
<bt:Image id="XLShare.tpicon_80x80" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare80x80.png" />
</bt:Images>
<bt:Urls>
<bt:Url id="XLShare.GetStarted.LearnMoreUrl" DefaultValue="https://xlsharedev.azurewebsites.net" />
<bt:Url id="XLShare.DesktopFunctionFile.Url" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Functions/FunctionFile.html" />
<bt:Url id="XLShare.Taskpane.Url" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Home.aspx" />
<!--<bt:Url id="XLShare.Taskpane.Url" DefaultValue="https://localhost:44325/ExcelOnline/Home.aspx" /> -->
</bt:Urls>
<!-- ShortStrings max characters==125. -->
<bt:ShortStrings>
<bt:String id="XLShare.GetStarted.Title" DefaultValue="Welcome to XLShare!" />
<bt:String id="XLShare.TaskpaneButton.Label" DefaultValue="Show XLShare Taskpane" />
<bt:String id="XLShare.Group1Label" DefaultValue="Collaborate" />
</bt:ShortStrings>
<!-- LongStrings max characters==250. -->
<bt:LongStrings>
<bt:String id="XLShare.GetStarted.Description" DefaultValue="Go to the HOME tab and click the 'Show XLShare Taskpane' button to start." />
<bt:String id="XLShare.TaskpaneButton.Tooltip" DefaultValue="Click to Show XLShare Taskpane" />
</bt:LongStrings>
</Resources> </VersionOverrides> <!-- End Add-in Commands Mode integration. -->
</OfficeApp>
在Mac上,Excel 2016和Excel的版本/內部版本是什麼? –
Windows Excel 2016版本1701(內部版本7766.2060)和Mac版本15.32(170309) – JL8707