- function FrontReport($title, $filename, $size = 'A4', $fontsize = 9, $orientation = 'P', $margins = NULL, $excelColWidthFactor = 6.5)
+ function __construct($title, $filename, $size = 'A4', $fontsize = 9, $orientation = 'P', $margins = NULL, $excelColWidthFactor = 6.5)
$this->filename = $filename.".xls";
$this->unique_name = random_id().".xls";
$this->path = company_path(). '/pdf_files';
$this->filename = $filename.".xls";
$this->unique_name = random_id().".xls";
$this->path = company_path(). '/pdf_files';
if ($this->code != "iso-8859-1")
$this->setVersion(8); // set biff version to 8 (0x0006 internal)
$this->sheet = $this->addWorksheet($this->worksheetNameGenerator($this->title));
if ($this->code != "iso-8859-1")
$this->setVersion(8); // set biff version to 8 (0x0006 internal)
$this->sheet = $this->addWorksheet($this->worksheetNameGenerator($this->title));
$this->headers2 = $headers2;
$this->aligns2 = $aligns2;
$this->numcols = count($this->headers);
$this->headers2 = $headers2;
$this->aligns2 = $aligns2;
$this->numcols = count($this->headers);