Adding Fixed Header
This commit is contained in:
parent
298819c01d
commit
be165c52f6
@ -28,6 +28,15 @@ class Worksheet implements WorksheetInterface
|
|||||||
const SHEET_XML_FILE_HEADER = <<<EOD
|
const SHEET_XML_FILE_HEADER = <<<EOD
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
|
||||||
|
EOD;
|
||||||
|
|
||||||
|
const SHEET_VIEW_XML_DATA = <<<'EOD'
|
||||||
|
<sheetViews>
|
||||||
|
<sheetView workbookViewId="0" tabSelected="1">
|
||||||
|
<pane state="frozen" activePane="bottomLeft" topLeftCell="A2" ySplit="1"/>
|
||||||
|
<selection sqref="A1:XFD1" pane="bottomLeft"/>
|
||||||
|
</sheetView>
|
||||||
|
</sheetViews>
|
||||||
EOD;
|
EOD;
|
||||||
|
|
||||||
/** @var \Box\Spout\Writer\Common\Sheet The "external" sheet */
|
/** @var \Box\Spout\Writer\Common\Sheet The "external" sheet */
|
||||||
@ -110,6 +119,7 @@ EOD;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fwrite($this->sheetFilePointer, self::SHEET_VIEW_XML_DATA);
|
||||||
fwrite($this->sheetFilePointer, '<sheetData>');
|
fwrite($this->sheetFilePointer, '<sheetData>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user