{"id":2655,"date":"2013-01-29T14:44:14","date_gmt":"2013-01-29T05:44:14","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2655"},"modified":"2013-01-29T14:44:14","modified_gmt":"2013-01-29T05:44:14","slug":"office%e7%94%a8%e3%82%a2%e3%83%97%e3%83%aa%e7%94%bb%e5%83%8f%e3%82%92%e6%8c%bf%e5%85%a5%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2655","title":{"rendered":"[Office\u7528\u30a2\u30d7\u30ea]\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u3002"},"content":{"rendered":"<p>Document\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306esetSelectedDataAsync\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070Office\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u6587\u5b57\u5217\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u306e\u306f\u3053\u308c\u307e\u3067\u66f8\u3044\u305f\u8a18\u4e8b\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=2146\" title=\"[JavaScript API for Office]\u300c\u3042\u3044\u3055\u3064\u6587\u306e\u633f\u5165\u300d\u3092\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u30a2\u30d7\u30ea\u306b\u79fb\u690d\u3057\u3066\u307f\u308b\u3002\" target=\"_blank\">[JavaScript API for Office]\u300c\u3042\u3044\u3055\u3064\u6587\u306e\u633f\u5165\u300d\u3092\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u30a2\u30d7\u30ea\u306b\u79fb\u690d\u3057\u3066\u307f\u308b\u3002<\/a>\u300d\u3084\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=2452\" title=\"\u65b0\u3057\u3044Office.js\u3067PowerPoint\u3067\u3082Office\u7528\u30a2\u30d7\u30ea\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\" target=\"_blank\">\u65b0\u3057\u3044Office.js\u3067PowerPoint\u3067\u3082Office\u7528\u30a2\u30d7\u30ea\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/a>\u300d\u7b49\u3067\u3082\u7d39\u4ecb\u3057\u3066\u3044\u308b\u901a\u308a\u3067\u3059\u304c\u3001\u5b9f\u306fsetSelectedDataAsync\u30e1\u30bd\u30c3\u30c9\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3067coercionType\u3092\u6307\u5b9a\u3059\u308c\u3070\u3001Office\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u753b\u50cf\u3092\u633f\u5165\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\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;script src=&quot;http:\/\/ajax.aspnetcdn.com\/ajax\/jquery\/jquery-1.7.2.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1.0\/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;#btnOK&quot;).click(function(){\r\n                    Office.context.document.setSelectedDataAsync(\r\n                        &quot;&lt;img src='http:\/\/localhost\/apps\/img.jpg' alt='cherry blossom' img\/&gt;&quot;,\r\n                        {coercionType:&quot;html&quot;}\r\n                    );\r\n                });\r\n            });\r\n        &lt;\/script&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;input id=&quot;btnOK&quot; type=&quot;button&quot; value=&quot;\u753b\u50cf\u3092\u633f\u5165&quot;&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_32_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_32_01-300x250.jpg\" alt=\"\" title=\"Office2013_32_01\" width=\"300\" height=\"250\" class=\"alignnone size-medium wp-image-2656\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_32_01-300x250.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_32_01-290x242.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_32_01-150x125.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_32_01.jpg 886w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u305f\u3060\u3057\u3001<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/fp161141.aspx\" title=\"CoercionType \u5217\u6319\u578b (Office \u7528\u30a2\u30d7\u30ea)\" target=\"_blank\">CoercionType \u5217\u6319\u578b (Office \u7528\u30a2\u30d7\u30ea)<\/a>\u306b\u3082\u3042\u308b\u3088\u3046\u306b\u3001coercionType\u306b&#8221;<span style=\"color: #ff0000; font-weight: bold;\">html<\/span>&#8220;\u3092\u6307\u5b9a\u3067\u304d\u308b\u306e\u306fWord\u306e\u307f\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nExcel\u3084PowerPoint\u3067\u540c\u3058\u65b9\u6cd5\u304c\u4f7f\u3048\u306a\u3044\u306e\u306f\u6b8b\u5ff5\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Document\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306esetSelectedDataAsync\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070Office\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u6587\u5b57\u5217\u3092\u66f8\u304d\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3001\u3068\u3044\u3046\u306e\u306f\u3053\u308c\u307e\u3067\u66f8\u3044\u305f\u8a18\u4e8b\u300c[JavaScript API for Offi [&hellip;]","protected":false},"author":1,"featured_media":7119,"comment_status":"open","ping_status":"open","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,79],"tags":[74,77],"class_list":["post-2655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-office2013","tag-office-2013","tag-apps-for-office"],"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-GP","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2655","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=2655"}],"version-history":[{"count":2,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2655\/revisions"}],"predecessor-version":[{"id":2658,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2655\/revisions\/2658"}],"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=2655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}