Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
[ fukuoka.php LT ] 新人のPHPExcel奮闘記
Search
tutida
December 07, 2015
Programming
0
860
[ fukuoka.php LT ] 新人のPHPExcel奮闘記
2015/12/02 株式会社Fusic にて開催された「fukuoka.php」でのLT資料
外部公開用に編集済み
tutida
December 07, 2015
Tweet
Share
More Decks by tutida
See All by tutida
Larvel Octane を AWS Fargate で動かしてみる
tutida
2
170
Laravel x Inertia.js 現代のモノリス によるお手軽 SPA 開発
tutida
3
2.2k
JAWS DAYS 2020 | サーバレスの新しいデータストアの選択肢 S3 Select の魅力
tutida
2
2.2k
180405_AWS_Deep_Night_in_Fukuoka_part2.pdf
tutida
0
99
170223_aws_handson
tutida
0
86
event
tutida
0
120
Other Decks in Programming
See All in Programming
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
800
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
990
Kotlin 2.0 and Beyond
antonarhipov
2
150
[DroidKaigi 2024] Android ViewからJetpack Composeへ 〜Jetpack Compose移行のすゝめ〜 / From Android View to Jetpack Compose: A Guide to Migration
syarihu
1
630
The Shape of a Service Object
inem
0
520
XStateでReactに秩序を与えたい
gizm000
0
730
【TID2024】模擬講義:プログラマと一緒にゲームをデザインしてみよう!
akatsukigames_tech
0
650
Rubyのobject_id
qnighy
6
1.3k
いつか使える ObjectSpace / Maybe useful ObjectSpace
euglena1215
2
140
connect-go で面倒くささと戦う / 2024-08-27 #newmo_layerx_go
izumin5210
2
650
Rubyとクリエイティブコーディングの輪の広がり / The Growing Circle of Ruby and Creative Coding
chobishiba
1
270
What you can do with Ruby on WebAssembly
kateinoigakukun
0
170
Featured
See All Featured
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Bash Introduction
62gerente
608
210k
[RailsConf 2023] Rails as a piece of cake
palkan
48
4.6k
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
225
22k
A designer walks into a library…
pauljervisheath
201
24k
Typedesign – Prime Four
hannesfritz
39
2.3k
Why Our Code Smells
bkeepers
PRO
334
56k
Building an army of robots
kneath
302
42k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Adopting Sorbet at Scale
ufuk
73
8.9k
Transcript
Fusicの新人研修 4ヶ月ほどの技術研修 その後... 社内システムの内製 社内の先輩をお客様と見立てた疑似受託開発
渡された要望 弊社のマーケティング部門より Fusicが運営/関与する
渡された要望 弊社のマーケティング部門より Fusicが運営/関与する Google Analytics
渡された要望 弊社のマーケティング部門より Fusicが運営/関与する Google Analytics Facebook
渡された要望 弊社のマーケティング部門より Fusicが運営/関与する Google Analytics Qiita Facebook
渡された要望 弊社のマーケティング部門より Fusicが運営/関与する Google Analytics Qiita Facebook あたりのデータを取得/集計して
渡された要望 Google Analytics Qiita Facebook
渡された要望 Google Analytics Qiita Facebook ワンクリックで
渡された要望 Google Analytics Qiita Facebook ワンクリックで 良い感じに
渡された要望 Google Analytics Qiita Facebook ワンクリックで 良い感じに Excelで出力して
完成品 「PaPaT」
媒体ごとに PV数とか 集計とか データは仮です
媒体ごとに PV数とか 集計とか グラフとか... データは仮です
新人のPHPExcel奮闘記 株式会社Fusic 内田 大順
グラフ出力 奮闘したところ
① PHPExcel PHPでExcelを出す方法 ② Reviser ③ ApachePOI
① PHPExcel PHPでExcelを出す方法 ② Reviser ③ ApachePOI 闇
① PHPExcel PHPでExcelを出す方法 ② Reviser ③ ApachePOI ☚ xlsのみ対応... 闇
① PHPExcel PHPでExcelを出す方法 ② Reviser ③ ApachePOI ☚ xlsのみ対応... 闇
① 全部コーディング グラフを出せそうな方法 ② テンプレートにグラフを仕込む ③ テンプレートにマクロを仕込む
① 全部コーディング グラフを出せそうな方法 ② テンプレートにグラフを仕込む ③ テンプレートにマクロを仕込む ☚ ちょっと調べた感じ無理そう
① 全部コーディング グラフを出せそうな方法 ② テンプレートにグラフを仕込む ③ テンプレートにマクロを仕込む ☚ ちょっと調べた感じ無理そう きつそう
① 全部コーディング グラフを出せそうな方法 ② テンプレートにグラフを仕込む ③ テンプレートにマクロを仕込む ☚ ちょっと調べた感じ無理そう きつそう
① テンプレートを用意
② PHPExcelで出力
③ いざ確認 ポチッ
④ 開く前に \\\\ Alert!!! //// //// \\\\
④ 中身は...
④ 中身は... _人人人人人人人_ > 突然の消失 <  ̄Y^Y^Y^Y^Y^Y ̄
⑤ 修正 ググる ソース見る 修正を試してみる テンプレ―トのグラフを変えてみる
① テンプレートを用意
② PHPExcelで出力
③ いざ確認 ポチッ
④ 開く前に \\\\ Alert!!! //// //// \\\\
④ 中身は...
④ 中身は... _人人人人人人人_ > 突然の消失 <  ̄Y^Y^Y^Y^Y^Y ̄
⑤ 修正 ググる ソース見る 修正を試してみる テンプレ―トのグラフを変えてみる
① テンプレートを用意
② PHPExcelで出力
③ いざ確認 ポチッ
④ 開く前に \\\\ Alert!!! //// //// \\\\
④ 中身は...
④ 中身は... _人人人人人人人_ > 突然の消失 <  ̄Y^Y^Y^Y^Y^Y ̄
⑤ 修正 ググる ソース見る 修正を試してみる テンプレ―トのグラフを変えてみる
① テンプレートを用意
④ 開く前に \\\\ Alert!!! //// //// \\\\
④ 中身は...
④ 中身は... _人人人人人人人_ > 突然の消失 <  ̄Y^Y^Y^Y^Y^Y ̄
なくならないエラー 繰 り 返 す 消 失 エンドレスエイト 何回も繰り返す
ある時 試行錯誤を 繰り返し グラフ出た! これで行ける! と思ったけど…
媒体ごとに
そんなに甘くない テンプレートシートをコピーして 使いまわそうとすると グラフは出るけど線が出ない......
参照元が...
参照元が...
参照元が...
参照元が...
結果
① 全部コーディング グラフを出せそうな方法 ② テンプレートにグラフを仕込む ③ テンプレートにマクロを仕込む
この一枚に
この一枚に 約1000行
そして何とか
完成
後日談
あれ? マクロ仕込んだテンプレート 使える・・・? ( д ) ゚ ゚
Ver1.7.8より どっかの頭いい人が解決してた
Let’s 実装! ・2軸とか ・棒グラフと折れ線グラフの併用とか PHPExcelで出来ないリッチなグラフが出来る!
嬉々と担当社員に報告 内田「これでExcelで出来ることの ほとんどが出来ますよ!! 早速、マクロを使ったパターンに しましょうか!?」 担当「ぇ、でも。 ( д ) ゚
゚ 形式xlsmでしょ? 警告うざいし、いらない。」
学んだこと ・こちらがいいと思うものが お客さんにいいものと限らない ・技術調査は出来る限りしっかりと ・PHPExcelへのちょっとばかりの知見
終わり!! ありがとうございました!!! 開発したシステムにちょっとでも 興味ある方は是非お声掛けください。 PHPExcel系のことQiita載せてます。