Skip to content

Commit

Permalink
Update HtmlPhpExcel.php
Browse files Browse the repository at this point in the history
1st sheet is created automatically during Excel::create() so, we need to delete it.
  • Loading branch information
JurajG007 authored Feb 14, 2024
1 parent 854f199 commit 89aeb23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/HtmlPhpExcel/HtmlPhpExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ private function parseHtml(): void

private function createExcel(): void
{
// Remove 1st sheet created automatically with new excel
$this->excel->removeSheet(1);

// Loop over all tables in document
foreach($this->document->getTables() as $table) {

Expand Down

0 comments on commit 89aeb23

Please sign in to comment.