Links

设置打印方向 - 纵向

函数原型

setPortrait(): self

实例

$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('printed_portrait.xlsx', 'sheet1')
->setPortrait() // 设置打印方向为纵向
->output();