{"id":252,"date":"2011-10-20T11:31:42","date_gmt":"2011-10-20T02:31:42","guid":{"rendered":"http:\/\/www.climb.co.jp\/blog_espress\/archives\/252"},"modified":"2021-04-20T14:13:37","modified_gmt":"2021-04-20T05:13:37","slug":"%e3%83%ac%e3%83%9d%e3%83%bc%e3%83%88%e3%83%bb%e5%b8%b3%e7%a5%a8%e3%82%92web%e4%b8%8a%e3%81%ab%e5%b1%95%e9%96%8b%e3%81%99%e3%82%8b%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%80%90java%e5%af%be","status":"publish","type":"post","link":"https:\/\/www.climb.co.jp\/blog_espress\/archives\/252","title":{"rendered":"\u30ec\u30dd\u30fc\u30c8\u30fb\u5e33\u7968\u3092web\u4e0a\u306b\u5c55\u958b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3010Java\u5bfe\u5fdc\u30ec\u30dd\u30fc\u30c8\u5e33\u7968\u30c4\u30fc\u30eb\uff1aEspressReport\u3011"},"content":{"rendered":"<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001EspressReport\u3067\u4f5c\u6210\u3057\u305f\u30ec\u30dd\u30fc\u30c8\u3084\u30c1\u30e3\u30fc\u30c8\u3092\u305d\u306e\u307e\u307e web \u4e0a\u306b\u5c55\u958b\u3059\u308b\u305f\u3081\u306e\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<\/p>\n<p><strong><span style=\"text-decoration: underline;\"><span style=\"font-size: medium;\">\u25cf\u914d\u7f6e\u30e9\u30a4\u30d6\u30e9\u30ea<\/span><\/span><\/strong><\/p>\n<p>\u4ee5\u4e0b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u306b\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong><span style=\"text-decoration: underline;\"> \u30fbReportAPIWithChart.jar<br \/>\n\u30fbbarbecue-1.5.jar<br \/>\n\u30fbExportLib.jar<br \/>\n\u30fbqblicense.jar<\/span><\/strong><\/p>\n<p><span style=\"text-decoration: underline;\"><span style=\"font-size: medium;\"><strong>\u25cf\u30c1\u30e3\u30fc\u30c8\u30fb\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3059\u308b\u5834\u5408\u306e\u6ce8\u610f\u70b9<\/strong><\/span><\/span><\/p>\n<p>EspreeeReport\u3092\u4f7f\u7528\u3057\u3066\u30c1\u30e3\u30fc\u30c8\u30fb\u30b0\u30e9\u30d5\u3092web\u4e0a\u306b\u8868\u793a\u3059\u308b\u5834\u5408\u3001\u300cRPTImageGenerator\u300d\u3068\u3044\u3046\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u914d\u7f6e\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002Windows\u306e\u5834\u5408\u306f\u4e0b\u8a18\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u306e\u3067\u3001web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>C:\\EspressReport\\ImageGenerator\\RPTImageGenerator.class<\/p>\n<p><strong><span style=\"text-decoration: underline;\"><span style=\"font-size: medium;\">\u25cf\u8868\u793a\u30a4\u30e1\u30fc\u30b8<br \/>\n<\/span><\/span><\/strong><br \/>\n<img decoding=\"async\" style=\"border: 0;\" src=\"\/\/www.climb.co.jp\/blog_espress\/wp-content\/uploads\/2011\/12\/6bf808f7fe8b4a7e0d42a05ef095e477[1].png\" border=\"0\" alt=\"\" width=\"450\" \/><\/p>\n<p><strong><span style=\"text-decoration: underline;\"><span style=\"font-size: medium;\">\u25cf\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0<br \/>\n<\/span><\/span><\/strong><br \/>\n\u30ec\u30dd\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210\u3057\u3066\u305d\u306e\u307e\u307ehtml\u306b\u51fa\u529b\u3057\u3066\u3044\u308b\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u4f8b\u3067\u3059\u3002\u751f\u6210\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u30ec\u30dd\u30fc\u30c8\u3092\u7d30\u304b\u304f\u5236\u5fa1\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<span style=\"color: #ff0000;\">package sample;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">import quadbase.ChartAPI.QbChart;<br \/>\nimport quadbase.reportdesigner.ReportAPI.QbReport;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">import java.applet.*;<br \/>\nimport java.io.*;<br \/>\nimport javax.servlet.*;<br \/>\nimport javax.servlet.http.*;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">public class Sample extends HttpServlet {<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> public void doGet(HttpServletRequest req, HttpServletResponse res)<br \/>\nthrows ServletException, IOException {<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> System.out.println(&#8220;Sample Servlet: Do Get&#8230;.&#8221;);<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ \u30b3\u30f3\u30c6\u30f3\u30c4\u30bf\u30a4\u30d7\u8a2d\u5b9a<br \/>\nres.setContentType(&#8220;text\/html&#8221;);<br \/>\nOutputStream toClient = res.getOutputStream();<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> try {<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ \u30d0\u30fc\u30b8\u30e7\u30f3\u30c1\u30a7\u30c3\u30af<br \/>\nSystem.out.println(QbReport.getVersion());<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ EspressManager<br \/>\nQbReport.setEspressManagerUsed(false);<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ \u30ec\u30dd\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9<br \/>\nString reportLocation = &#8220;ER\/rpt\/ERsample.pak&#8221;;<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ \u30ec\u30dd\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<br \/>\nQbReport report = new QbReport((Applet) null, reportLocation);<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ \u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<br \/>\nreport.setServletDirectory(&#8220;ER\/&#8221;);<br \/>\nreport.setDynamicExport(true, &#8220;localhost&#8221;, 8080);<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> \/\/ \u30a8\u30af\u30b9\u30dd\u30fc\u30c8<br \/>\nreport.export(QbReport.DHTML, toClient);<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> } catch (Exception e) {<br \/>\ne.printStackTrace();<br \/>\n}<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> toClient.flush();<br \/>\ntoClient.close();<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> }<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> public String getServletInfo() {<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> return &#8220;Sample Servlet for EspressReport&#8221;;<\/span><\/p>\n<p><span style=\"color: #ff0000;\"> }<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<br \/>\n<\/span>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001EspressReport\u3067\u4f5c\u6210\u3057\u305f\u30ec\u30dd\u30fc\u30c8\u3084\u30c1\u30e3\u30fc\u30c8 &hellip; <a href=\"https:\/\/www.climb.co.jp\/blog_espress\/archives\/252\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[122,162,163],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-espressreport","tag-java","tag-crystal-reports","tag-java-report"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":2,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts\/252\/revisions"}],"predecessor-version":[{"id":2336,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/posts\/252\/revisions\/2336"}],"wp:attachment":[{"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/media?parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/categories?post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.climb.co.jp\/blog_espress\/wp-json\/wp\/v2\/tags?post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}