mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-13 03:26:26 +00:00
Add Xls to Sample 25
This commit is contained in:
@@ -101,7 +101,7 @@ $drawing->setCoordinates('C5');
|
||||
$helper->write(
|
||||
$spreadsheet,
|
||||
__FILE__,
|
||||
['Xlsx', 'Html', 'Ods'],
|
||||
['Xlsx', 'Html', 'Ods', 'Xls'],
|
||||
false,
|
||||
function (BaseWriter $writer): void {
|
||||
if (method_exists($writer, 'writeAllSheets')) {
|
||||
|
||||
@@ -484,6 +484,9 @@ class Worksheet extends BIFFwriter
|
||||
[$column, $row] = Coordinate::indexesFromString($coordinate);
|
||||
|
||||
$url = $hyperlink->getUrl();
|
||||
if ($url === '') {
|
||||
continue;
|
||||
}
|
||||
if ($url[0] === '#') {
|
||||
$url = "internal:$url";
|
||||
} elseif (str_starts_with($url, 'sheet://')) {
|
||||
|
||||
Reference in New Issue
Block a user