Skip to content

Commit

Permalink
Merge pull request #5 from mightytroll/XOL-3823
Browse files Browse the repository at this point in the history
XOL-3823 Report Builder - Exports
  • Loading branch information
rushi authored Feb 28, 2018
2 parents aed7a70 + c4f8613 commit 24b12f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Service/ExcelWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public function __construct(LoggerInterface $logger, PHPExcelFactory $phpExcel)
{
parent::__construct($logger);
$this->phpexcel = $phpExcel;
$this->handle = $this->phpexcel->createPHPExcelObject();
\PHPExcel_Shared_Font::setAutoSizeMethod(\PHPExcel_Shared_Font::AUTOSIZE_METHOD_EXACT);
}

Expand All @@ -27,6 +26,7 @@ public function __construct(LoggerInterface $logger, PHPExcelFactory $phpExcel)
*/
public function setup($filepath)
{
$this->handle = $this->phpexcel->createPHPExcelObject();
$this->handle->getActiveSheet()->getPageSetup()->setOrientation(\PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);
$this->filepath = $filepath;
}
Expand Down

0 comments on commit 24b12f4

Please sign in to comment.