{"id":6213,"date":"2015-09-25T00:03:34","date_gmt":"2015-09-24T15:03:34","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6213"},"modified":"2015-09-25T00:03:34","modified_gmt":"2015-09-24T15:03:34","slug":"office-2016%e3%81%a7%e9%80%b2%e5%8c%96%e3%81%97%e3%81%9foffice-%e3%82%a2%e3%83%89%e3%82%a4%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6213","title":{"rendered":"Office 2016\u3067\u9032\u5316\u3057\u305fOffice \u30a2\u30c9\u30a4\u30f3"},"content":{"rendered":"<p>\u4eca\u65e5<a href=\"https:\/\/github.com\/OfficeDev\" title=\"OfficeDev\" target=\"_blank\">OfficeDev<\/a>\u3092\u773a\u3081\u3066\u3044\u3066\u6c17\u304c\u4ed8\u3044\u305f\u306e\u304c\u300c<a href=\"https:\/\/github.com\/OfficeDev\/office-js-snippet-explorer\" title=\"OfficeJS Snippet Explorer\" target=\"_blank\">OfficeJS Snippet Explorer<\/a>\u300d\u3002<\/p>\n<p>Office 2016\u304c\u767b\u5834\u3057\u3066\u3001\u77e5\u3089\u306c\u9593\u306bJavaScript API for Office\u3082\u9032\u5316\u3057\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u65b0\u3057\u3044API\u3092\u8a66\u3057\u3066\u307f\u308b\u304b\u30fc\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3055\u3063\u305d\u304f\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h4 class=\"style4a\">\u30c6\u30b9\u30c8\u74b0\u5883<\/h4>\n<ul>\n<li>Windows 10 Enterprise 64\u30d3\u30c3\u30c8<\/li>\n<li>Microsoft Word 2016 MSO (16.0.4266.1003) 32\u30d3\u30c3\u30c8<\/li>\n<\/ul>\n<h4 class=\"style4a\">\u30a2\u30d7\u30ea\u672c\u4f53(Sample.html)<\/h4>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n  &lt;head&gt;\r\n    &lt;meta charset=&quot;UTF-8&quot;&gt;\r\n    &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;\r\n    &lt;title&gt;\u52d5\u4f5c\u78ba\u8a8d\u7528Office \u30a2\u30c9\u30a4\u30f3&lt;\/title&gt;\r\n    &lt;script src=&quot;https:\/\/ajax.aspnetcdn.com\/ajax\/jquery\/jquery-2.1.4.min.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1\/hosted\/office.js&quot;&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n      Office.initialize = function(reason){}\r\n      $(function(){\r\n        $(&quot;#btnSample&quot;).click(function(){\r\n          Word.run(function(context){\r\n            context.document.body.insertHtml(&quot;&lt;h1&gt;Hello world.&lt;\/h1&gt;&quot;, Word.InsertLocation.start);\r\n          });\r\n        });\r\n      });\r\n    &lt;\/script&gt;\r\n  &lt;\/head&gt;\r\n  &lt;body style=&quot;font-size:14px;&quot;&gt;\r\n    &lt;h3&gt;\u25a0 \u52d5\u4f5c\u78ba\u8a8d\u7528Office \u30a2\u30c9\u30a4\u30f3&lt;\/h3&gt;\r\n    &lt;input id=&quot;btnSample&quot; type=&quot;button&quot; value=&quot;OK&quot;&gt;\r\n  &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<h4 class=\"style4a\">\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(Sample.xml)<\/h4>\n<p>\u203b Id\u8981\u7d20(GUID)\u306f\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=5758\" title=\"GUID\u3092\u4f5c\u6210\u3059\u308bVBScript | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">GUID\u3092\u4f5c\u6210\u3059\u308bVBScript<\/a>\u300d\u7b49\u3067\u4f5c\u6210\u3057\u305f\u3082\u306e\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;OfficeApp xmlns=&quot;http:\/\/schemas.microsoft.com\/office\/appforoffice\/1.1&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:type=&quot;TaskPaneApp&quot;&gt;\r\n  &lt;Id&gt;cd56ccfd-3e1e-4d7f-ba69-843d8fb79de9&lt;\/Id&gt;\r\n  &lt;Version&gt;1.0&lt;\/Version&gt;\r\n  &lt;ProviderName&gt;@kinuasa&lt;\/ProviderName&gt;\r\n  &lt;DefaultLocale&gt;ja-jp&lt;\/DefaultLocale&gt;\r\n  &lt;DisplayName DefaultValue=&quot;Sample Add-in&quot; \/&gt;\r\n  &lt;Description DefaultValue=&quot;Sample Task pane Add-in&quot;\/&gt;\r\n  &lt;Hosts&gt;\r\n    &lt;Host Name=&quot;Document&quot; \/&gt;\r\n  &lt;\/Hosts&gt;\r\n  &lt;DefaultSettings&gt;\r\n    &lt;SourceLocation DefaultValue=&quot;http:\/\/localhost\/oa\/Sample.html&quot; \/&gt;\r\n  &lt;\/DefaultSettings&gt;\r\n  &lt;Permissions&gt;ReadWriteDocument&lt;\/Permissions&gt;\r\n&lt;\/OfficeApp&gt;<\/pre>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u3092\u66f8\u3044\u305f\u3068\u3053\u308d\u3001\u4e0b\u56f3\u306e\u3088\u3046\u306b\u610f\u56f3\u3057\u305f\u901a\u308a\u306b\u52d5\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2016_OfficeAdd-in_01_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2016_OfficeAdd-in_01_01.gif\" alt=\"Office2016_OfficeAdd-in_01_01\" width=\"1044\" height=\"585\" class=\"alignnone size-full wp-image-6214\" \/><\/a><\/p>\n<p>\u3046\u30fc\u3093\u3002\u3053\u308c\u307e\u3067\u3068\u6bd4\u3079\u3066\u5927\u5206\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3082\u51fa\u6765\u308b\u3053\u3068\u304c\u5897\u3048\u3066\u3044\u308b\uff01\uff01<\/p>\n<p>Office \u30a2\u30c9\u30a4\u30f3\u3001Office 2016\u3067\u304b\u306a\u308a\u5b9f\u7528\u7684\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4eca\u65e5OfficeDev\u3092\u773a\u3081\u3066\u3044\u3066\u6c17\u304c\u4ed8\u3044\u305f\u306e\u304c\u300cOfficeJS Snippet Explorer\u300d\u3002 Office 2016\u304c\u767b\u5834\u3057\u3066\u3001\u77e5\u3089\u306c\u9593\u306bJavaScript API for Office\u3082\u9032\u5316\u3057\u3066\u3044\u305f\u3088\u3046\u3067 [&hellip;]","protected":false},"author":1,"featured_media":7119,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[130,4,128],"tags":[],"class_list":["post-6213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-office2016"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-OfficeAddins.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1Cd","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6213"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6213\/revisions"}],"predecessor-version":[{"id":6216,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6213\/revisions\/6216"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7119"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}