LoginSignup
3
2

More than 5 years have passed since last update.

exceljsでのセル内改行

Posted at

NodeでExcelを扱う際に使用するモジュール
・exceljs
https://github.com/guyonroche/exceljs

セル内改行をする際は、値の改行を下記のように置換する必要がある。
※シングルクォーテーションではなく、ダブルクォーテーションにやらないとうまくいかないのでご注意。
val.replace(/¥n/g,"¥r¥n")

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2