2017-12-27 42 views
1

私は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に追加しました。ただし、アドインを再読み込みしても、作業ウィンドウは表示されません。

カスタム関数とタスクペインを同時に使用できるかどうかは誰にでも分かりますか?これを可能にするために私は何を修正すべきですか?

編集1:上げて「作業ウィンドウを開くんxsi:type="TaskPaneApp"からxsi:type="VersionOverridesV1_0"を変更し、私たちはカスタム関数をしようとすると、エラーが `私たちは、このアドイン、それが正しく設定されていないため、開始できません。 。

だから私はまだ適切な解決策を探しています。

答えて

0

はい、あなたはアドインコマンドを使用して、同じアドインで同時にカスタム関数や作業ウィンドウを持つことができます。

タスクペインコマンドを有効にするには、ShowTaskpaneアクションを使用します。マニフェスト(help topicをご覧ください。sample manifest on GitHubなど)

タスクペインが挿入されるたびに「固定」にしたい場合は、this topic pageを使用してタスクペインを自動的に開きます。

-Michael(カスタム機能のPM)

関連する問題