ページの印刷方向を縦に設定
<?php require_once 'Spreadsheet/Excel/Writer.php'; $workbook = new Spreadsheet_Excel_Writer(); $worksheet =& $workbook->addWorksheet(); // ページの印刷方向を縦に設定 $worksheet->setPortrait(); $worksheet->writeString(0, 0, "abc"); $worksheet->writeString(1, 0, "123"); $workbook->send('setPortrait.xls'); $workbook->close();
setPortrait で印刷方向を変更。
$worksheet->setPortrait();