{"id":2165,"date":"2012-08-14T13:41:00","date_gmt":"2012-08-14T04:41:00","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=2165"},"modified":"2013-02-26T17:22:55","modified_gmt":"2013-02-26T08:22:55","slug":"javascript-api-for-office%e3%82%ab%e3%83%ac%e3%83%b3%e3%83%80%e3%83%bc%e3%81%8b%e3%82%89%e6%97%a5%e4%bb%98%e3%82%92%e5%85%a5%e5%8a%9b%e3%81%99%e3%82%8b%e3%82%b3%e3%83%b3%e3%83%86%e3%83%b3%e3%83%84","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=2165","title":{"rendered":"[Office\u7528\u30a2\u30d7\u30ea]\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u30a2\u30d7\u30ea\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><span style=\"color: #ff0000; font-weight: bold;\">\u203b \u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u5143\u306b\u3057\u305f\u30a2\u30d7\u30ea\u304c\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=2674\" title=\"[Office\u7528\u30a2\u30d7\u30ea]\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u5165\u529b\" target=\"_blank\">\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u5165\u529b<\/a>\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/?p=2158\" title=\"jQuery UI\u306eDatepicker\u306b\u795d\u65e5\u5224\u5b9a\u30ed\u30b8\u30c3\u30af\u3092\u7d44\u307f\u8fbc\u3080\u3002\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067<a href=\"http:\/\/www.h3.dion.ne.jp\/~sakatsu\/index.htm\" title=\"AddinBox\" target=\"_blank\">Excel MVP\u306e\u89d2\u7530\u3055\u3093<\/a>\u4f5c\u306e\u300c<a href=\"http:\/\/www.h3.dion.ne.jp\/~sakatsu\/holiday_logic.htm#JS\" title=\"AddinBox(\u795d\u65e5\u30de\u30af\u30ed-1)\" target=\"_blank\">\u65e5\u672c\u306e\u795d\u65e5\u5224\u5b9a\u30ed\u30b8\u30c3\u30af<\/a>\u300d\u3092jQuery UI Datepicker\u306b\u7d44\u307f\u8fbc\u3080\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3042\u308c\u306f\u5b9f\u306f\u524d\u30d5\u30ea\u3067\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u306e\u65b9\u304c\u672c\u984c\u300c<span style=\"color: #ff0000; font-weight: bold;\">\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u3092\u5165\u529b\u3059\u308b\u30b3\u30f3\u30c6\u30f3\u30c4\u30a2\u30d7\u30ea\u306e\u7d39\u4ecb<\/span>\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><!--more--><br \/>\n<strong>\u30fb\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(xml)<\/strong><\/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.0&quot; xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:type=&quot;ContentApp&quot;&gt;\r\n  &lt;Id&gt;a335220b-b163-440f-9967-a0c7f085752d&lt;\/Id&gt;\r\n  &lt;Version&gt;1.0&lt;\/Version&gt;\r\n  &lt;ProviderName&gt;\u304d\u306c\u3042\u3055&lt;\/ProviderName&gt;\r\n  &lt;DefaultLocale&gt;jp-JP&lt;\/DefaultLocale&gt;\r\n  &lt;DisplayName DefaultValue=&quot;\u30ab\u30ec\u30f3\u30c0\u30fc\u5165\u529b&quot; \/&gt;\r\n  &lt;Description DefaultValue=&quot;\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u7c21\u5358\u306b\u65e5\u4ed8\u3092\u5165\u529b\u3057\u307e\u3059\u3002&quot;\/&gt;\r\n  &lt;IconUrl DefaultValue=&quot;http:\/\/officeimg.vo.msecnd.net\/_layouts\/images\/general\/office_logo.jpg&quot; \/&gt;\r\n  &lt;Capabilities&gt;\r\n    &lt;Capability Name=&quot;Workbook&quot; \/&gt;\r\n  &lt;\/Capabilities&gt;\r\n  &lt;DefaultSettings&gt;\r\n    &lt;SourceLocation DefaultValue=&quot;\\\\XXXX\\Apps\\Test.html&quot; \/&gt;\r\n    &lt;RequestedWidth&gt;323&lt;\/RequestedWidth&gt; \r\n    &lt;RequestedHeight&gt;256&lt;\/RequestedHeight&gt;\r\n  &lt;\/DefaultSettings&gt;\r\n  &lt;Permissions&gt;ReadWriteDocument&lt;\/Permissions&gt;\r\n&lt;\/OfficeApp&gt;<\/pre>\n<p><strong>\u30fbhtml\u30d5\u30a1\u30a4\u30eb(Test.html)<\/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;link rel=&quot;stylesheet&quot; href=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1\/themes\/dot-luv\/jquery-ui.css&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;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.21\/jquery-ui.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1\/i18n\/jquery.ui.datepicker-ja.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 src=&quot;HolidayChk.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script&gt;\r\n            Office.initialize = function(reason){}\r\n            $(function(){\r\n                $(&quot;#datepicker&quot;).datepicker({\r\n                    beforeShowDay: function(date) {\r\n                        var result;\r\n                        var dd = date.getFullYear() + &quot;\/&quot; + (date.getMonth() + 1) + &quot;\/&quot; + date.getDate();\r\n                        var hName = ktHolidayName(dd);\r\n                        if(hName != &quot;&quot;) {\r\n                            result = &#x5B;true, &quot;date-holiday&quot;, hName];\r\n                        } else {\r\n                            switch (date.getDay()) {\r\n                                case 0: \/\/\u65e5\u66dc\u65e5\r\n                                    result = &#x5B;true, &quot;date-holiday&quot;];\r\n                                    break;\r\n                                case 6: \/\/\u571f\u66dc\u65e5\r\n                                    result = &#x5B;true, &quot;date-saturday&quot;];\r\n                                    break;\r\n                                default:\r\n                                    result = &#x5B;true];\r\n                                    break;\r\n                            }\r\n                        }\r\n                        return result;\r\n                    },\r\n                    onSelect: function(dateText, inst) {\r\n                        Office.context.document.setSelectedDataAsync(dateText);\r\n                    }\r\n                });\r\n            });\r\n        &lt;\/script&gt;\r\n        &lt;style&gt;\r\n            .date-holiday .ui-state-default {\r\n                background-image:none;\r\n                background-color:#FF9999;\r\n            }\r\n            .date-saturday .ui-state-default {\r\n                background-image:none;\r\n                background-color:#66CCFF;\r\n            }\r\n            body {\r\n                margin:0;\r\n                padding:0;\r\n                font-family:Arial,sans-serif;\r\n                font-size:0.8em;\r\n            }\r\n        &lt;\/style&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;div id=&quot;datepicker&quot;&gt;&lt;\/div&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\u30b3\u30f3\u30c6\u30f3\u30c4\u30a2\u30d7\u30ea\u3068\u3057\u3066\u30ab\u30ec\u30f3\u30c0\u30fc\u304c\u8868\u793a\u3055\u308c\u3001\u65e5\u4ed8\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3053\u3068\u3067\u9078\u629e\u30bb\u30eb\u306b\u65e5\u4ed8\u304c\u633f\u5165\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3082\u3089\u3048\u308c\u3070\u5206\u304b\u308a\u307e\u3059\u304c\u3001\u30b3\u30fc\u30c9\u81ea\u4f53\u306f\u524d\u56de\u306e\u8a18\u4e8b\u3068\u307b\u307c\u540c\u3058\u3067\u3001\u30bb\u30eb\u3078\u306e\u5165\u529b\u90e8\u5206\u3067\u3042\u308b<strong>setSelectedDataAsync\u30e1\u30bd\u30c3\u30c9<\/strong>\u306e\u90e8\u5206\u304c\u82e5\u5e72\u7570\u306a\u308b\u7a0b\u5ea6\u3067\u3059\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_24_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_24_01-300x218.jpg\" alt=\"\" title=\"Office2013_24_01\" width=\"300\" height=\"218\" class=\"alignnone size-medium wp-image-2166\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_24_01-300x218.jpg 300w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_24_01-290x211.jpg 290w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_24_01-150x109.jpg 150w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/Office2013_24_01.jpg 514w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u4e0b\u8a18Office\u30b9\u30c8\u30a2\u3067\u540c\u69d8\u306e\u30a2\u30d7\u30ea\u304c\u3059\u3067\u306b\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u65e5\u672c\u3067\u4f7f\u7528\u3059\u308b\u306b\u306f\u4e0a\u8a18\u30b3\u30fc\u30c9\u306e\u65b9\u304c\u4fbf\u5229\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u30fbMini Calendar and Date Picker &#8211; STORE &#8211; Office.com<\/strong><br \/>\n<a href=\"http:\/\/office.microsoft.com\/en-us\/store\/mini-calendar-and-date-picker-WA102957665.aspx\" title=\"Mini Calendar and Date Picker - STORE - Office.com\" target=\"_blank\">http:\/\/office.microsoft.com\/en-us\/store\/mini-calendar-and-date-picker-WA102957665.aspx<\/a><\/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 \u203b \u4e0b\u8a18\u30b3\u30fc\u30c9\u3092\u5143\u306b\u3057\u305f\u30a2\u30d7\u30ea\u304c\u300c\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u65e5\u4ed8\u5165\u529b\u300d\u306b\u306a\u308a\u307e\u3059\u3002 \u524d\u56de\u306e\u8a18\u4e8b [&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":[83,84,74,77],"class_list":["post-2165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-office2013","tag-jquery-ui","tag-datepicker","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-yV","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2165","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=2165"}],"version-history":[{"count":6,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2165\/revisions"}],"predecessor-version":[{"id":2779,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2165\/revisions\/2779"}],"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=2165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}