{"id":2111,"date":"2012-07-25T17:05:02","date_gmt":"2012-07-25T08:05:02","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2111"},"modified":"2013-01-30T17:05:12","modified_gmt":"2013-01-30T08:05:12","slug":"javascript-api-for-office%e4%bd%9c%e6%a5%ad%e3%82%a6%e3%82%a3%e3%83%b3%e3%83%89%e3%82%a6%e3%82%a2%e3%83%97%e3%83%aa%e3%81%8b%e3%82%89%e3%82%b7%e3%83%bc%e3%83%a0%e3%83%ac%e3%82%b9%e3%81%ab%e3%80%8c","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2111","title":{"rendered":"[Office\u7528\u30a2\u30d7\u30ea]\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u30a2\u30d7\u30ea\u304b\u3089\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u300c\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af\u300d\u3092\u5229\u7528\u3059\u308b\u3002"},"content":{"rendered":"<p><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u3053\u306e\u60c5\u5831\u306fOffice 2013 \u30ab\u30b9\u30bf\u30de\u30fc \u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3092\u5143\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u88fd\u54c1\u7248\u3067\u306f\u5909\u66f4\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/span><\/p>\n<p>\u4eca\u56de\u306fJavaScript API for Office\u3092\u4f7f\u3063\u3066\u3001\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u30a2\u30d7\u30ea\u304b\u3089\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u300c<a href=\"http:\/\/www.alc.co.jp\/\" title=\"\u82f1\u8a9e\u30fb\u8a9e\u5b66\u306e\u5b66\u7fd2\u60c5\u5831\u30b5\u30a4\u30c8\u300c\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af\u300d\uff1a\u5730\u7403\u4eba\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u5275\u308b\u30a2\u30eb\u30af\" target=\"_blank\">\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af<\/a>\u300d\u306b\u3088\u308b\u8f9e\u66f8\u691c\u7d22\u3092\u884c\u3046\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u3084\u767b\u9332\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3053\u3053\u3067\u306f\u8aac\u660e\u3057\u307e\u305b\u3093\u306e\u3067\u3001<a href=\"\/\/www.ka-net.org\/blog\/?p=2022\" title=\"JavaScript\u3067Excel 2013\u7528\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002(2)\" target=\"_blank\">JavaScript\u3067Excel 2013\u7528\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002(2)<\/a>\u3084<a href=\"\/\/www.ka-net.org\/blog\/?p=2050\" title=\"JavaScript\u3067Excel 2013\u7528\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002(3)\" target=\"_blank\">JavaScript\u3067Excel 2013\u7528\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u3002(3)<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u30fbhtml<\/strong><\/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.googleapis.com\/ajax\/libs\/jquery\/1.7.2\/jquery.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;https:\/\/az88874.vo.msecnd.net\/api\/1.0\/office.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script&gt;\r\n            Office.initialize = function (reason) {\r\n                $(document).ready(function () {\r\n                    Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged, document_SelectionChange);\r\n                });\r\n            }\r\n            function document_SelectionChange(eventArgs) {\r\n                if ($(&quot;#action&quot;).attr(&quot;checked&quot;)) {\r\n                    eventArgs.document.getSelectedDataAsync(Office.CoercionType.Text, function(asyncResult) {\r\n                        if (asyncResult.status != Office.AsyncResultStatus.Failed) {\r\n                            var s = asyncResult.value;\r\n                            if (s) {$(&quot;#ifr&quot;).attr(&quot;src&quot;, &quot;http:\/\/eow.alc.co.jp\/search?q=&quot; + encodeURIComponent(s));}\r\n                        }\r\n                    });\r\n                }\r\n            }\r\n        &lt;\/script&gt;\r\n        &lt;style&gt;\r\n            html,body {\r\n                margin:0;\r\n                padding:0;\r\n                overflow:hidden;\r\n                height:100%;\r\n                font-family:Arial,sans-serif;\r\n                font-size:0.9em;\r\n            }\r\n            iframe {\r\n                \/* width:100%; *\/\r\n                width:600px;\r\n                height:100%;\r\n                border:none;\r\n            }\r\n        &lt;\/style&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;input id=&quot;action&quot; type=&quot;checkbox&quot; title=&quot;\u30c1\u30a7\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306e\u307f\u691c\u7d22\u304c\u884c\u308f\u308c\u307e\u3059\u3002&quot;&gt;\u52d5\u4f5c\r\n        &lt;iframe id=&quot;ifr&quot; src=&quot;&quot;&gt;&lt;\/iframe&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u305f\u30a2\u30d7\u30ea\u3092\u633f\u5165\u3059\u308b\u3068\u3001<\/p>\n<p><strong>\u30fb\u9078\u629e\u7bc4\u56f2\u3092\u5909\u66f4\u3057\u305f\u969b\u306bSelectionChanged\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3002<\/strong><br \/>\n<strong>\u30fbgetSelectedDataAsync\u30e1\u30bd\u30c3\u30c9\u306b\u3088\u3063\u3066Office\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u4e0a\u306e\u9078\u629e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3002<\/strong><br \/>\n<strong>\u30fb\u53d6\u5f97\u3057\u305f\u6587\u5b57\u5217\u3092\u5143\u306biframe\u4e0a\u3067\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af\u691c\u7d22\u3002<\/strong><\/p>\n<p>\u3068\u3044\u3063\u305f\u52d5\u4f5c\u304c\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n(\u305f\u3060\u3057\u3001\u9078\u629e\u7bc4\u56f2\u304c\u5909\u66f4\u3055\u308c\u308b\u5ea6\u306b\u691c\u7d22\u304c\u884c\u308f\u308c\u308b\u306e\u306f\u8ca0\u8377\u304c\u9ad8\u3044\u305f\u3081\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u52d5\u4f5c<\/span>\u300d\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u306e\u307f\u691c\u7d22\u3092\u884c\u3046\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002)<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_17_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_17_01-300x210.jpg\" alt=\"\" title=\"Office2013_17_01\" width=\"300\" height=\"210\" class=\"alignnone size-medium wp-image-2112\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_17_01-300x210.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_17_01-290x203.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_17_01-150x105.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_17_01.jpg 912w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001JavaScript API for Office\u3092\u5229\u7528\u3059\u308b\u3068\u3001<span style=\"color: #ff0000; font-weight: bold;\">Office\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3068Web\u30da\u30fc\u30b8\u306e\u9023\u643a\u304c\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u884c\u3048\u308b<\/span>\u3088\u3046\u306b\u306a\u308a\u3001Office\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc \u2192 \u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30d6\u30e9\u30a6\u30b6\u30fc\u3092\u7acb\u3061\u4e0a\u3052\u691c\u7d22\u30da\u30fc\u30b8\u3092\u958b\u304f \u2192 \u30b3\u30d4\u30fc\u3057\u305f\u6587\u5b57\u5217\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u691c\u7d22\u5b9f\u65bd\u3001\u3068\u3044\u3063\u305f\u9762\u5012\u306a\u624b\u9806\u3092\u8e0f\u3080\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u8a18\u4e8b\u306e\u30bf\u30a4\u30c8\u30eb\u901a\u308a\u300c<a href=\"http:\/\/www.alc.co.jp\/\" title=\"\u82f1\u8a9e\u30fb\u8a9e\u5b66\u306e\u5b66\u7fd2\u60c5\u5831\u30b5\u30a4\u30c8\u300c\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af\u300d\uff1a\u5730\u7403\u4eba\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u5275\u308b\u30a2\u30eb\u30af\" target=\"_blank\">\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af<\/a>\u300d\u3068\u306e\u9023\u643a\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u304c\u3001iframe\u3067\u57cb\u3081\u8fbc\u3080URL\u3092\u5909\u66f4\u3059\u308c\u3070\u3001\u3082\u3061\u308d\u3093\u30b9\u30da\u30fc\u30b9\u30a2\u30eb\u30af\u4ee5\u5916\u306eWeb\u30da\u30fc\u30b8\u3068\u3082\u9023\u643a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b8\u30c3\u30af\u81ea\u4f53\u306f\u975e\u5e38\u306b\u7c21\u5358\u306a\u3082\u306e\u3067\u3059\u306e\u3067\u3001\u8208\u5473\u304c\u3042\u308b\u65b9\u306f\u4e00\u5ea6\u8a66\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"\u203b \u3053\u306e\u60c5\u5831\u306fOffice 2013 \u30ab\u30b9\u30bf\u30de\u30fc \u30d7\u30ec\u30d3\u30e5\u30fc\u7248\u3092\u5143\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u88fd\u54c1\u7248\u3067\u306f\u5909\u66f4\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002 \u4eca\u56de\u306fJavaScript API for Office\u3092\u4f7f\u3063\u3066\u3001\u4f5c\u696d\u30a6\u30a3\u30f3\u30c9\u30a6\u30a2 [&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-2111","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-y3","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2111","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=2111"}],"version-history":[{"count":4,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2111\/revisions"}],"predecessor-version":[{"id":2666,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2111\/revisions\/2666"}],"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=2111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}