{"id":860,"date":"2017-09-09T13:03:09","date_gmt":"2017-09-09T04:03:09","guid":{"rendered":"https:\/\/knowhow.hirohiro716.com\/?p=860"},"modified":"2024-05-06T21:48:48","modified_gmt":"2024-05-06T12:48:48","slug":"%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e9%81%b8%e6%8a%9e%e3%83%80%e3%82%a4%e3%82%a2%e3%83%ad%e3%82%b0%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/weblog.hirohiro716.com\/?p=860","title":{"rendered":"LibreOffice\u306eVB\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e\u30c0\u30a4\u30a2\u30ed\u30b0\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<pre class=\"brush: vb; title: ; notranslate\" title=\"\">\r\nDim filePicker As Object\r\nfilePicker = createUnoService(&quot;com.sun.star.ui.dialogs.FilePicker&quot;)\r\nfilePicker.initialize(Array(com.sun.star.ui.dialogs.TemplateDescription.FILEOPEN_SIMPLE))\r\nfilePicker.appendFilter(&quot;\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb(*.txt)&quot;, &quot;*.txt&quot;)\r\nfilePicker.appendFilter(&quot;HTML\u30d5\u30a1\u30a4\u30eb(*.htm, *.html)&quot;, &quot;*.htm;*.html&quot;)\r\nfilePicker.appendFilter(&quot;\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb(*.*)&quot;, &quot;*.*&quot;)\r\nIf filePicker.execute() = 1 Then\r\n    Dim loadFiles() As String\r\n    loadFiles = filePicker.getFiles()\r\n    Dim loadFileUrl As String\r\n    loadFileUrl = loadFiles(0)\r\n    Dim loadFilePath As String\r\n    loadFilePath = ConvertFromURL(loadFileUrl)\r\n    MsgBox(loadFilePath)\r\nEnd If\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Dim filePicker As Object filePicker = createUnoService(&quot;com.sun.star.ui.dialogs.FilePicker&quot;) filePic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-860","post","type-post","status-publish","format-standard","hentry","category-libreoffice-calc"],"views":1633,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=860"}],"version-history":[{"count":7,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions"}],"predecessor-version":[{"id":2544,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions\/2544"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}