2017-01-07 5 views
0

office-generator을 사용하여 Outlook addin을 스캐 폴딩했는데 메일이 읽기 모드로 열렸을 때 표시되고 실행되지만 새 메일이 작성 될 때 addins 섹션에 표시되지 않습니다. 필자는 작성 모드에서 표시 할 추가 기능을 표시하고 일단 추가 기능을 창에서 클릭하여 열려고했습니다. 이것은 VersionOverides 섹션에서 처리메일을 작성할 때 Outlook에서 추가 기능을 표시하는 방법은 무엇입니까?

<?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" xsi:type="MailApp" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"> 
    <Id>f1a2f021-ef67-4e8f-a08c-e24700c36c3d</Id> 
    <Version>1.0.0.0</Version> 
    <ProviderName>[Provider name]</ProviderName> 
    <DefaultLocale>en-US</DefaultLocale> 
    <DisplayName DefaultValue="Test"/> 
    <Description DefaultValue="[Outlook Add-in description]"/> 
    <IconUrl DefaultValue="https://localhost:8443/images/icon-32.png"/> 
    <HighResolutionIconUrl DefaultValue="https://localhost:8443/images/hi-res-icon.png"/> 
    <Hosts> 
    <Host Name="Mailbox"/> 
    </Hosts> 
    <Requirements> 
    <Sets> 
     <Set Name="MailBox" MinVersion="1.1"/> 
    </Sets> 
    </Requirements> 
    <FormSettings> 
    <Form xsi:type="ItemRead"> 
     <DesktopSettings> 
     <SourceLocation DefaultValue="https://localhost:8443/appread/home/home.html"/> 
     <RequestedHeight>250</RequestedHeight> 
     </DesktopSettings> 
    </Form> 
    <Form xsi:type="ItemEdit"> 
     <DesktopSettings> 
     <SourceLocation DefaultValue="https://localhost:8443/appcompose/home/home.html"/> 
     </DesktopSettings> 
    </Form> 
    </FormSettings> 
    <Permissions>ReadWriteItem</Permissions> 
    <Rule xsi:type="RuleCollection" Mode="Or"> 
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" /> 
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/> 
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit"/> 
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read"/> 
    </Rule> 
    <DisableEntityHighlighting>false</DisableEntityHighlighting> 
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0"> 
    <Hosts> 
     <Host xsi:type="MailHost"> 
     <DesktopFormFactor> 
      <FunctionFile resid="funcFile"/> 
      <ExtensionPoint xsi:type="MessageReadCommandSurface"> 
      <OfficeTab id="TabDefault"> 
       <Group id="msgReadCmdGroup"> 
       <Label resid="groupLabel"/> 
       <Control xsi:type="Button" id="msgReadPaneButton"> 
        <Label resid="msgReadPaneButtonLabel"/> 
        <Supertip> 
        <Title resid="msgReadPaneButtonTitle"/> 
        <Description resid="msgReadPaneButtonDesc"/> 
        </Supertip> 
        <Icon> 
        <bt:Image size="16" resid="icon-16"/> 
        <bt:Image size="32" resid="icon-32"/> 
        <bt:Image size="80" resid="icon-80"/> 
        </Icon> 
        <Action xsi:type="ShowTaskpane"> 
        <SourceLocation resid="readPaneUrl"/> 
        </Action> 
       </Control> 
       </Group> 
      </OfficeTab> 
      </ExtensionPoint> 
      <ExtensionPoint xsi:type="AppointmentAttendeeCommandSurface"> 
      <OfficeTab id="TabDefault"> 
       <Group id="attendeeCmdGroup"> 
       <Label resid="groupLabel"/> 
       <Control xsi:type="Button" id="attendeePaneButton"> 
        <Label resid="attendeePaneButtonLabel"/> 
        <Supertip> 
        <Title resid="attendeePaneButtonTitle"/> 
        <Description resid="attendeePaneButtonDesc"/> 
        </Supertip> 
        <Icon> 
        <bt:Image size="16" resid="icon-16"/> 
        <bt:Image size="32" resid="icon-32"/> 
        <bt:Image size="80" resid="icon-80"/> 
        </Icon> 
        <Action xsi:type="ShowTaskpane"> 
        <SourceLocation resid="readPaneUrl"/> 
        </Action> 
       </Control> 
       </Group> 
      </OfficeTab> 
      </ExtensionPoint> 
      <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface"> 
      <OfficeTab id="TabDefault"> 
       <Group id="organizerCmdGroup"> 
       <Label resid="groupLabel"/> 
       <Control xsi:type="Button" id="organizerGetSubject"> 
        <Label resid="getSubjectLabel"/> 
        <Supertip> 
        <Title resid="getSubjectTitle"/> 
        <Description resid="getSubjectDesc"/> 
        </Supertip> 
        <Icon> 
        <bt:Image size="16" resid="icon-16"/> 
        <bt:Image size="32" resid="icon-32"/> 
        <bt:Image size="80" resid="icon-80"/> 
        </Icon> 
        <Action xsi:type="ExecuteFunction"> 
        <FunctionName>getSubject</FunctionName> 
        </Action> 
       </Control> 
       <Control xsi:type="Menu" id="organizerMenu"> 
        <Label resid="menuLabel"/> 
        <Supertip> 
        <Title resid="menuTitle"/> 
        <Description resid="menuDescription"/> 
        </Supertip> 
        <Icon> 
        <bt:Image size="16" resid="icon-16"/> 
        <bt:Image size="32" resid="icon-32"/> 
        <bt:Image size="80" resid="icon-80"/> 
        </Icon> 
        <Items> 
        <Item id="organizerSetSubject"> 
         <Label resid="setSubjectLabel"/> 
         <Supertip> 
         <Title resid="setSubjectTitle"/> 
         <Description resid="setSubjectDesc"/> 
         </Supertip> 
         <Icon> 
         <bt:Image size="16" resid="icon-16"/> 
         <bt:Image size="32" resid="icon-32"/> 
         <bt:Image size="80" resid="icon-80"/> 
         </Icon> 
         <Action xsi:type="ExecuteFunction"> 
         <FunctionName>setSubject</FunctionName> 
         </Action> 
        </Item> 
        <Item id="organizerAddRecip"> 
         <Label resid="addRecipLabel"/> 
         <Supertip> 
         <Title resid="addRecipTitle"/> 
         <Description resid="addRecipDesc"/> 
         </Supertip> 
         <Icon> 
         <bt:Image size="16" resid="icon-16"/> 
         <bt:Image size="32" resid="icon-32"/> 
         <bt:Image size="80" resid="icon-80"/> 
         </Icon> 
         <Action xsi:type="ExecuteFunction"> 
         <FunctionName>addToRecipients</FunctionName> 
         </Action> 
        </Item> 
        </Items> 
       </Control> 
       </Group> 
      </OfficeTab> 
      </ExtensionPoint> 
     </DesktopFormFactor> 
     </Host> 
    </Hosts> 
    <Resources> 
     <bt:Images> 
     <bt:Image id="icon-16" DefaultValue="https://localhost:8443/images/icon-16.png"/> 
     <bt:Image id="icon-32" DefaultValue="https://localhost:8443/images/icon-32.png"/> 
     <bt:Image id="icon-80" DefaultValue="https://localhost:8443/images/icon-80.png"/> 
     </bt:Images> 
     <bt:Urls> 
     <bt:Url id="funcFile" DefaultValue="https://localhost:8443/FunctionFile/Functions.html"/> 
     <bt:Url id="readPaneUrl" DefaultValue="https://localhost:8443/appread/home/home.html"/> 
     </bt:Urls> 
     <bt:ShortStrings> 
     <bt:String id="groupLabel" DefaultValue="Sample Add-in"/> 
     <bt:String id="msgReadPaneButtonLabel" DefaultValue="See message details"/> 
     <bt:String id="msgReadPaneButtonTitle" DefaultValue="See message details"/> 
     <bt:String id="attendeePaneButtonLabel" DefaultValue="See appointment details"/> 
     <bt:String id="attendeePaneButtonTitle" DefaultValue="See appointment details"/> 
     <bt:String id="setSubjectLabel" DefaultValue="Set subject"/> 
     <bt:String id="setSubjectTitle" DefaultValue="Set subject"/> 
     <bt:String id="getSubjectLabel" DefaultValue="Get subject"/> 
     <bt:String id="getSubjectTitle" DefaultValue="Get subject"/> 
     <bt:String id="addRecipLabel" DefaultValue="Add recipient"/> 
     <bt:String id="addRecipTitle" DefaultValue="Add recipient"/> 
     <bt:String id="menuLabel" DefaultValue="Modify message"/> 
     <bt:String id="menuTitle" DefaultValue="Modify message"/> 
     </bt:ShortStrings> 
     <bt:LongStrings> 
     <bt:String id="msgReadPaneButtonDesc" DefaultValue="Opens a task pane showing the subject and sender of the currently selected message"/> 
     <bt:String id="attendeePaneButtonDesc" DefaultValue="Opens a task pane showing the subject and sender of the currently selected appointment"/> 
     <bt:String id="setSubjectDesc" DefaultValue="Sets the subject to 'Hello World!'"/> 
     <bt:String id="getSubjectDesc" DefaultValue="Gets the current subject and displays it in the info bar"/> 
     <bt:String id="addRecipDesc" DefaultValue="Add yourself to the recipient list (the To line for messages, the Required attendees line for appointments)"/> 
     <bt:String id="menuDescription" DefaultValue="Expand this menu to set this subject or add yourself to the To line."/> 
     </bt:LongStrings> 
    </Resources> 
    </VersionOverrides> 
</OfficeApp> 

답변

3

: 다음

생성 된 manifest.xml입니다. 포함 된 매니페스트에서 은 <ExtensionPoint xsi:type="MessageReadCommandSurface">으로 정의됩니다. 이것은 메시지 읽기를위한 확장 지점을 정의합니다.

작성 중에 추가 기능을 사용하려면 MessageComposeCommandSurface에 대해 ExtentionPoint를 추가해야합니다.

작성 중에 만 표시하려면 MessageReadCommandSurface 섹션을 제거하면됩니다. AppointmentAttendeeCommandSurface (초대 한 약속 읽기) 및 AppointmentOrganizerCommandSurface (작성한 약속 읽기)에도 동일하게 적용됩니다.

+0

Marc, 우리는 기존 이벤트를 열 때 AppointmentOrganizerCommandSurface가 ItemId를 사용할 수없는 "작성"모드를 엽니 다. 이런 식으로되어 있습니까? 사용자가 편집중인 기존 이벤트에 이해가되지 않습니까? 이런 경우 ItemId를 얻을 수있는 방법이 있습니까? 감사합니다 – Alexey

+0

이것은 실제로이 답변과 관련이 없습니다. 이것을 질문으로 올리시겠습니까? –