Skip to content

Commit

Permalink
XOL-3823 Fixed a bug that didn't allow multiple reports to be created…
Browse files Browse the repository at this point in the history
… in the same script/request
  • Loading branch information
mightytroll committed Jan 25, 2018
1 parent aed7a70 commit c4f8613
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 c4f8613

Please sign in to comment.