{"id":2353,"date":"2012-02-01T00:20:20","date_gmt":"2012-01-31T15:20:20","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=2353"},"modified":"2012-02-10T02:54:00","modified_gmt":"2012-02-09T17:54:00","slug":"phpexcel%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9-%e3%81%9d%e3%81%ae1","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=2353","title":{"rendered":"PHPExcel\u306e\u4f7f\u3044\u65b9 \u305d\u306e1"},"content":{"rendered":"<p>Excel\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u51fa\u3059\u4e8b\u304c\u51fa\u6765\u308bPHP\u30e9\u30a4\u30d6\u30e9\u30ea\u300cPHPExcel\u300d\u306e\u4f7f\u3044\u65b9\u3067\u3059\u3002<\/p>\n<p style=\"margin-top: 1em;\">\u307e\u305a\u306f\u3053\u3061\u3089\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<p style=\"margin-top: 1em;\"><strong>PHPExcel<\/strong><\/p>\n<p><a href=\"http:\/\/phpexcel.codeplex.com\/\" target=\"_blank\">http:\/\/phpexcel.codeplex.com\/<\/a><\/p>\n<p style=\"margin-top: 1em;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/PHPExcel.jpg\" title=\"PHPExcel\" width=\"708\" height=\"303\" class=\"alignnone size-full wp-image-2354\" srcset=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/PHPExcel.jpg 1011w, https:\/\/www.webcyou.com\/wp-content\/uploads\/PHPExcel-300x128.jpg 300w\" sizes=\"auto, (max-width: 708px) 100vw, 708px\" \/><\/p>\n<h4 style=\"margin-top: 1em;\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u4e0a\u8a18\u306e\u300cDownload\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002<\/p>\n<p style=\"margin-top: 1em;\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u7528\u3057\u305f\u3044\u4efb\u610f\u306e\u5834\u6240\u306b\u914d\u7f6e\u3002<\/p>\n<p style=\"margin-top: 1em;\">\u4f8b\u3048\u3070\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p style=\"margin-top: 1em;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/0799331ae2eb63ab45064c8813687313.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2012-02-01 0.09.46\" width=\"111\" height=\"39\" class=\"alignnone size-full wp-image-2355\" \/><\/p>\n<p style=\"margin-top: 1em;\">PHP<\/p>\n<p><pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;?php\r\nset_include_path(get_include_path() . PATH_SEPARATOR . '\/path\/to\/Classes\/');\r\ninclude '\u30d1\u30b9\u8a18\u8ff0\/PHPExcel.php';\r\ninclude '\u30d1\u30b9\u8a18\u8ff0\/PHPExcel\/IOFactory.php';\r\n?&gt;<\/pre>\n<\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin-top: 1em;\">\u00a0<\/p>\n<p style=\"margin-top: 1em;\">include\u301c \u306f\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u30d1\u30b9\u3092\u8a18\u8ff0\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3060\u3068\u3001\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><pre class=\"brush: plain; title: ; notranslate\" title=\"\">&lt;?php\r\nset_include_path(get_include_path() . PATH_SEPARATOR . '\/path\/to\/Classes\/');\r\ninclude 'phpexcel\/Classes\/PHPExcel.php';\r\ninclude 'phpexcel\/Classes\/PHPExcel\/IOFactory.php';\r\n?&gt;<\/pre>\n<\/p>\n<p style=\"margin-top: 1em;\">\u00a0<\/p>\n<p style=\"margin-top: 1em;\">\u3053\u308c\u3067\u5b8c\u4e86\u3002<\/p>\n<h4 style=\"margin-top: 1em;\">\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b<\/h4>\n<p style=\"margin-top: 1em;\">\u306a\u306b\u306f\u3068\u3082\u3042\u308c\u3001\u51fa\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><pre class=\"brush: plain; title: ; notranslate\" title=\"\">$excel = new PHPExcel();\r\n\/\/ \u30b7\u30fc\u30c8\u306e\u8a2d\u5b9a\r\n$excel-&gt;setActiveSheetIndex(0);\r\n$sheet = $excel-&gt;getActiveSheet();\r\n$sheet-&gt;setTitle('sheet name');\r\n\/\/ \u30bb\u30eb\u306b\u5024\u3092\u5165\u308c\u308b\r\n$sheet-&gt;setCellValue('A1', 'hogege');\r\n\/\/ Excel2007 \u5f62\u5f0f\u3067\u51fa\u529b\r\n$writer = PHPExcel_IOFactory::createWriter($excel, 'Excel2007');\r\n$writer-&gt;save(&quot;hogege.xlsx&quot;);<\/pre>\n<p>\u4e0a\u8a18\u306e\u8a18\u8ff0\u3067<br \/>\n<span class=\"Apple-style-span\" style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;\">1.PHPExcel \u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u751f\u6210<\/span><br \/>\n<span class=\"Apple-style-span\" style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;\">2.\u4f5c\u696d\u3059\u308b\u30b7\u30fc\u30c8\u3092\u6307\u5b9a<\/span><br \/>\n<span class=\"Apple-style-span\" style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;\">3.\u30bb\u30eb\u306e\u5024\u3092\u66f4\u65b0<\/span><br \/>\n<span class=\"Apple-style-span\" style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;\">4.\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b<\/span><\/p>\n<p style=\"margin-top: 1em;\">\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p style=\"margin-top: 1em;\">\u3053\u308c\u3067\u3001\u5b9f\u884c\u3059\u308b\u3068\u3001<\/p>\n<p style=\"margin-top: 1em;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/04924dc630b7421384587e0f6a08a6aa.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2012-02-01 0.17.16\" width=\"117\" height=\"66\" class=\"align none size-full wp-image-2356\" \/><\/p>\n<p style=\"margin-top: 1em;\">\u51fa\u6765\u3066\u308b\uff01\uff01\u30a8\u30af\u30bb\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u3001<\/p>\n<p style=\"margin-top: 1em;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e467fed55c9c9c93c4a82e0017df8a48.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2012-02-01 0.18.37\" width=\"159\" height=\"171\" class=\"align none size-full wp-image-2357\" \/><\/p>\n<p style=\"margin-top: 1em;\">\u3057\u3063\u304b\u308a\u300chogege\u300d\u306e\u6587\u5b57\u5217\u304c\u5165\u3063\u3066\u307e\u3059\uff01<\/p>\n<p style=\"margin-top: 1em;\">\u3044\u3084\u3041\u8272\u3005\u4f7f\u3048\u305d\u3046\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Excel\u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u51fa\u3059\u4e8b\u304c\u51fa\u6765\u308bPHP\u30e9\u30a4\u30d6\u30e9\u30ea\u300cPHPExcel\u300d\u306e\u4f7f\u3044\u65b9\u3067\u3059\u3002 \u307e\u305a\u306f\u3053\u3061\u3089\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002 PHPExcel http:\/\/phpexcel.codeplex.com\/ \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4e0a\u8a18\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[174,173,126,78,114,118],"class_list":["post-2353","post","type-post","status-publish","format-standard","hentry","category-php","tag-excel","tag-php","tag-phpexcel","tag-78","tag-114","tag-118"],"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/2353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2353"}],"version-history":[{"count":6,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/2353\/revisions"}],"predecessor-version":[{"id":2962,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/2353\/revisions\/2962"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}