{"id":54,"date":"2008-03-14T17:11:16","date_gmt":"2008-03-14T08:11:16","guid":{"rendered":"http:\/\/knowhow.hirohiro716.com\/?p=54"},"modified":"2017-02-21T17:02:29","modified_gmt":"2017-02-21T08:02:29","slug":"ms-access%e3%83%ac%e3%83%9d%e3%83%bc%e3%83%88%e3%81%aetextbox%e3%81%ae%e6%96%87%e5%ad%97%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%92%e5%b9%85%e3%81%a7%e8%87%aa%e5%8b%95%e8%aa%bf%e6%95%b4%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/weblog.hirohiro716.com\/?p=54","title":{"rendered":"MS Access\u30ec\u30dd\u30fc\u30c8\u306eTextBox\u306e\u6587\u5b57\u30b5\u30a4\u30ba\u3092\u5e45\u3067\u81ea\u52d5\u8abf\u6574\u3059\u308b\u95a2\u6570"},"content":{"rendered":"<p>Public Static Sub adjustFontSize(ByRef report As Report, ByRef textBox As TextBox)<\/p>\n<p>    Dim text As String<br \/>\n    text = textBox.text<\/p>\n<p>    Report.FontSize = textBox.FontSize<\/p>\n<p>    Dim tempWidth As Integer<br \/>\n    tempWidth = Report.TextWidth(text)<\/p>\n<p>    Do While textBox.Width < tempWidth\n        Report.FontSize = Report.FontSize - 1\n        tempWidth = Report.TextWidth(text)\n    Loop\n    \n    textBox.FontSize = Report.FontSize\n\nEnd Sub\n[\/sourcecode] \n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Public Static Sub adjustFontSize(ByRef report As Report, ByRef textBox As TextBox) Dim text As String text = t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-vb-vba"],"views":4291,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/54","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=54"}],"version-history":[{"count":1,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":567,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions\/567"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}