2016-11-16 2 views
0

나는이 가이드에 후속하는 워드 추가 기능을 개발하기 위해 노력하고있어 명시 : 나는 가이드와 동일 모든 것을 만들어오피스 추가 기능은

https://dev.office.com/docs/add-ins/word/word-add-ins

,하지만 난 말씀을 열려고하면 오류가 발생합니다 :

addin error: We could not initialize this addin

또는

addin error: Wrong configuration

내가 뭔가 잘못 거기 추측 내 나는 또한 공유 폴더에 tryed했습니다

<?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" 
      xsi:type="TaskPaneApp"> 
    <Id>fd3731db-b538-4e32-819f-b09b801894e8</Id> 
    <Version>1.0.0.0</Version> 
    <ProviderName>Microsoft</ProviderName> 
    <DefaultLocale>en-US</DefaultLocale> 
    <DisplayName DefaultValue="Boilerplate content" /> 
    <Description DefaultValue="Insert boilerplate content into a Word document." /> 
    <Hosts> 
     <Host Name="Document"/> 
    </Hosts> 
    <DefaultSettings> 
     <SourceLocation DefaultValue="http://localhost:8080/boilerplate/home.html" /> 
    </DefaultSettings> 
    <Permissions>ReadWriteDocument</Permissions> 
</OfficeApp> 

: 태그 SourceLocation

이 내 XML입니다

<SourceLocation DefaultValue="\\MyShare\boilerplate\home.html" /> 
추가 기능은 https를 통해 제공 할 수

NB: I'm testing in Word Online

답변

1

(SSL) 설명 된대로 here.

하면 브라우저 당신은 당신의 브라우저는 인증서에 대한 경고 또는 당신이 selfsigned certificate for localhost domain를 설치할 수 있습니다 우회 할 수 있습니다 https://localhost:8080/boilerplate/home.html

직접 URL을 탐색 할 수 있는지 확인합니다. 다시 웹 추가 기능에 때 Warning: Office.js is loaded outside of Office client

: 추가 기능 위치 URL에 직접 검색 할 때

는 브라우저 콘솔에서 경고를해야한다. Office.initialize callback을 설정해야합니다.

팁 : Office Online을 사용하여 개발을 시작할 수 있습니다. 브라우저 devtools를 열린 상태로 유지하고 캐시를 비활성화하는 것을 잊지 마십시오. Acutally, 이것은 일반적인 웹 개발과 다르지 않습니다.