{"id":4073,"date":"2014-03-03T14:58:24","date_gmt":"2014-03-03T05:58:24","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=4073"},"modified":"2014-03-03T14:58:24","modified_gmt":"2014-03-03T05:58:24","slug":"office%e7%94%a8%e3%82%a2%e3%83%97%e3%83%aav1-1%e3%81%a7%e8%bf%bd%e5%8a%a0%e3%81%95%e3%82%8c%e3%81%9fgotobyidasync%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=4073","title":{"rendered":"[Office\u7528\u30a2\u30d7\u30ea]v1.1\u3067\u8ffd\u52a0\u3055\u308c\u305fgoToByIdAsync\u30e1\u30bd\u30c3\u30c9\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002"},"content":{"rendered":"<p><a href=\"\/\/www.ka-net.org\/blog\/?p=4063\" title=\"Microsoft Office 2013 Service Pack 1\u304c\u516c\u958b\u3055\u308c\u307e\u3057\u305f\u3002\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306e\u901a\u308a\u3001Office 2013\u306eService Pack 1\u304c\u516c\u958b\u3055\u308c\u3001Office \u7528\u30a2\u30d7\u30ea\u306b\u3082\u65b0\u3057\u3044API\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u70b9\u3082\u542b\u3081\u3066\u3001\u65b0\u3057\u3044API\u3092\u30c6\u30b9\u30c8\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u306b\u7528\u3044\u308b\u306e\u306f\u3001JavaScript API for Office v1.1\u3067\u8ffd\u52a0\u3055\u308c\u305fDocument\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">goToByIdAsync<\/span>\u300d\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p><strong>\u30fbDocument.goToByIdAsync method (apps for Office v1.1)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn482498.aspx\" title=\"Document.goToByIdAsync method (apps for Office v1.1)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn482498.aspx<\/a><br \/>\n<strong>\u30fbGoToType enumeration (apps for Office v1.1)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn482549.aspx\" title=\"GoToType enumeration (apps for Office v1.1)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn482549.aspx<\/a><\/p>\n<p>\u4e0a\u8a18\u30da\u30fc\u30b8\u3092\u898b\u308b\u9650\u308a\u3001PowerPoint\u3067\u3042\u308c\u3070\u30b9\u30e9\u30a4\u30c9\u756a\u53f7\u3084\u5b9a\u6570\u3092\u6307\u5b9a\u3057\u3066\u30b9\u30e9\u30a4\u30c9\u3092\u79fb\u52d5\u3067\u304d\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u7d50\u679c\u304c\u5206\u304b\u308a\u3084\u3059\u304f\u30c6\u30b9\u30c8\u306b\u306f\u9069\u3057\u3066\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u65e9\u901f\u66f8\u3044\u305f\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304c\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\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;BABFB200-C1BD-4247-9777-EF53C02801E9&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;\u65b0\u3057\u3044API\u306e\u30c6\u30b9\u30c8\u7528\u30a2\u30d7\u30ea&quot; \/&gt;\r\n  &lt;Description DefaultValue=&quot;JavaScript API for Office v1.1\u306e\u30c6\u30b9\u30c8\u3067\u3059\u3002&quot;\/&gt;\r\n  &lt;Hosts&gt;\r\n    &lt;Host Name=&quot;Presentation&quot; \/&gt;\r\n  &lt;\/Hosts&gt;\r\n  &lt;Methods&gt;\r\n    &lt;Method Name=&quot;Office.context.document.goToByIdAsync&quot; \/&gt;\r\n  &lt;\/Methods&gt;\r\n  &lt;DefaultSettings&gt;\r\n    &lt;SourceLocation DefaultValue=&quot;http:\/\/localhost\/new_api.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>\u4ee5\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u6bd4\u3079\u3066\u5927\u304d\u304f\u5909\u308f\u3063\u3066\u3044\u308b\u306e\u304c\u3001OfficeApp\u8981\u7d20\u306e\u300c<span style=\"color: #ff0000; font-weight: bold;\">xmlns=&#8221;http:\/\/schemas.microsoft.com\/office\/appforoffice\/1.1&#8243;<\/span>\u300d\u90e8\u5206\u3068<span style=\"color: #ff0000; font-weight: bold;\">Hosts\u3001Host\u3001Methods\u8981\u7d20<\/span>\u3067\u3059\u306d\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304f\u306b\u5f53\u305f\u308a\u3001\u4e0b\u8a18\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\u30fbHow to: Specify the Office host applications your app supports using the version 1.1 manifest<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn535870.aspx\" title=\"How to: Specify the Office host applications your app supports using the version 1.1 manifest\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn535870.aspx<\/a><br \/>\n<strong>\u30fbHow to: Specify API requirement sets and methods for your app<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn535871.aspx\" title=\"How to: Specify API requirement sets and methods for your app\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn535871.aspx<\/a><br \/>\n<strong>\u30fbUpdating the manifest of a mail app from schema v1.0 to v1.1<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn592152.aspx\" title=\"Updating the manifest of a mail app from schema v1.0 to v1.1\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn592152.aspx<\/a><br \/>\n<strong>\u30fbCreating a manifest for a mail app to activate in a read or compose form in Outlook (schema v1.1)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn554255.aspx\" title=\"Creating a manifest for a mail app to activate in a read or compose form in Outlook (schema v1.1)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn554255.aspx<\/a><br \/>\n<strong>\u30fbSetting up a mail app for Outlook on tablets and mobile devices (schema v1.1)<\/strong><br \/>\n<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn594603.aspx\" title=\"Setting up a mail app for Outlook on tablets and mobile devices (schema v1.1)\" target=\"_blank\">http:\/\/msdn.microsoft.com\/ja-jp\/library\/dn594603.aspx<\/a><\/p>\n<p>\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306eAPI\u306f\u516c\u958b\u3055\u308c\u305f\u3070\u304b\u308a\u306a\u306e\u3067\u3001\u307e\u3060\u307e\u3060\u8cc7\u6599\u306f\u5c11\u306a\u3044\u3067\u3059\u306d\u30fb\u30fb\u30fb\u3002<br \/>\n\u307b\u3068\u3093\u3069\u624b\u63a2\u308a\u306e\u72b6\u614b\u3067\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u672c\u4f53(new_api.html)\u306e\u30b3\u30fc\u30c9\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; 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 name=&quot;robots&quot; content=&quot;noindex,nofollow&quot;&gt;\r\n        &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=Edge&quot;&gt;\r\n        &lt;title&gt;\u65b0\u3057\u3044API\u306e\u30c6\u30b9\u30c8\u7528\u30a2\u30d7\u30ea&lt;\/title&gt;\r\n        &lt;script src=&quot;https:\/\/ajax.aspnetcdn.com\/ajax\/jquery\/jquery-1.11.0.min.js&quot;&gt;&lt;\/script&gt;\r\n        &lt;script src=&quot;https:\/\/appsforoffice.microsoft.com\/lib\/1.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;#btnGotoLast&quot;).click(function(){\r\n                    Office.context.document.goToByIdAsync(Office.Index.Last, Office.GoToType.Index, function(asyncResult){\r\n                        if(asyncResult.status == Office.AsyncResultStatus.Failed){\r\n                            $(&quot;#result&quot;).val(asyncResult.error.message);\r\n                        }\r\n                    });\r\n                });\r\n                \r\n                $(&quot;#btnGoto3&quot;).click(function(){\r\n                    Office.context.document.goToByIdAsync(3, Office.GoToType.Index, function(asyncResult){\r\n                        if(asyncResult.status == Office.AsyncResultStatus.Failed){\r\n                            $(&quot;#result&quot;).val(asyncResult.error.message);\r\n                        }\r\n                    });\r\n                });\r\n            });\r\n        &lt;\/script&gt;\r\n    &lt;\/head&gt;\r\n    &lt;body&gt;\r\n        &lt;p&gt;\r\n            &lt;input id=&quot;btnGotoLast&quot; type=&quot;button&quot; value=&quot;GotoLast&quot;&gt;\r\n            &lt;input id=&quot;btnGoto3&quot; type=&quot;button&quot; value=&quot;Goto3&quot;&gt;\r\n        &lt;\/p&gt;\r\n        &lt;p&gt;\r\n            &lt;textarea id=&quot;result&quot;&gt;&lt;\/textarea&gt;\r\n        &lt;\/p&gt;\r\n    &lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u6c17\u3092\u4ed8\u3051\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u304cJavaScript API for Office \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u8aad\u307f\u8fbc\u3080\u90e8\u5206\u3002\u300c<span style=\"color: #ff0000; font-weight: bold;\">https:\/\/appsforoffice.microsoft.com\/lib\/1.1\/hosted\/office.js<\/span>\u300d\u3068\u3001\u3061\u3083\u3093\u3068\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u53c2\u7167\u3057\u306a\u3051\u308c\u3070\u3001\u30b3\u30fc\u30c9\u306f\u4e0a\u624b\u304f\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u65e9\u901f\u30c6\u30b9\u30c8\u3057\u305f\u3068\u3053\u308d\u3001\u30a2\u30d7\u30ea\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">GotoLast<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u6700\u7d42\u30b9\u30e9\u30a4\u30c9\u306b\u3001\u300c<span style=\"color: #ff0000; font-weight: bold;\">Goto3<\/span>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u30683\u679a\u76ee\u306e\u30b9\u30e9\u30a4\u30c9\u306b\u79fb\u52d5\u3059\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/AppsForOffice_v1.1_01_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/AppsForOffice_v1.1_01_01.jpg\" alt=\"AppsForOffice_v1.1_01_01\" width=\"1000\" height=\"692\" class=\"alignnone size-full wp-image-4074\" srcset=\"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/AppsForOffice_v1.1_01_01.jpg 1000w, https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/AppsForOffice_v1.1_01_01-300x207.jpg 300w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3067\u65b0\u3057\u3044\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u65b0\u3057\u3044API\u3082\u554f\u984c\u7121\u304f\u52d5\u304f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u65b0\u3057\u3044API\u306b\u306a\u3063\u3066\u3069\u3046\u5909\u308f\u3063\u305f\u306e\u304b\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3044\u3051\u305d\u3046\u3067\u3059\u3002<\/p>\n<h4>\u3010\u7de8\u96c6\u5f8c\u8a18\u3011<\/h4>\n<p>\u5b9f\u306f\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059\u306b\u5f53\u305f\u308a\u3001\u306a\u304b\u306a\u304b\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u304c\u8a8d\u8b58\u305b\u305a\u306b\u82e6\u52b4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3084\u3063\u3071\u308a\u3001MSDN\u306b\u66f8\u3044\u3066\u3042\u308b\u60c5\u5831\u3082\u9593\u9055\u3063\u3066\u3044\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u9d5c\u5451\u307f\u306b\u306f\u3067\u304d\u306a\u3044\u3067\u3059\u306d\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u524d\u56de\u306e\u8a18\u4e8b\u306e\u901a\u308a\u3001Office 2013\u306eService Pack 1\u304c\u516c\u958b\u3055\u308c\u3001Office \u7528\u30a2\u30d7\u30ea\u306b\u3082\u65b0\u3057\u3044API\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u30de\u30cb\u30d5\u30a7\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u70b9\u3082\u542b\u3081\u3066\u3001\u65b0\u3057\u3044API\u3092\u30c6\u30b9\u30c8\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044 [&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":[],"class_list":["post-4073","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps-for-office","category-office","category-office2013"],"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-13H","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4073","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=4073"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4073\/revisions"}],"predecessor-version":[{"id":4075,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4073\/revisions\/4075"}],"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=4073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}