From 91f3c5af4911fb05c55b94175989b887e8c8b0ad Mon Sep 17 00:00:00 2001 From: csh Date: Fri, 15 Dec 2023 15:14:44 +0800 Subject: [PATCH] v1.5.3-patch1 --- funcext/TSOffice/worksheet/xlsxWorkBook.tsf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funcext/TSOffice/worksheet/xlsxWorkBook.tsf b/funcext/TSOffice/worksheet/xlsxWorkBook.tsf index 3404b83..dbcf98f 100644 --- a/funcext/TSOffice/worksheet/xlsxWorkBook.tsf +++ b/funcext/TSOffice/worksheet/xlsxWorkBook.tsf @@ -40,7 +40,7 @@ Type xlsxWorkBook = Class //workbook.Print(); //workbook.Dump(); //echo tostn(workbook.dom()); - node := workbook.FirstChildElement('workbook').FirstChildElement('sheets').FirstChildElement(); + node := workbook.FirstChildElement('workbook').FirstChildElement('sheets').FirstChildElement('sheet'); while ifObj(node) do Begin name := node.GetAttribute("name"); sheetNames_[sheetsCount_]['name'] := name; @@ -50,7 +50,7 @@ Type xlsxWorkBook = Class sheetNames_[sheetsCount_]['file'] := 'xl/' + rids[ rid ]; sheetIndexMap_[ LowerCase(name) ] := sheetsCount_; sheetsCount_ ++; - node := node.NextElement(); + node := node.NextElement('sheet'); End; files := zipfile_.Files();