Links

Set print orientation-landscape

Function Prototype

setLandscape(): self

Example

$config = ['path' =>'./tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('printed_landscape.xlsx','sheet1')
->setLandscape() // Set the printing direction to landscape
->output();