This commit is contained in:
csh 2023-03-23 11:40:15 +08:00
parent 9c416109f5
commit 84be550383
5 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,4 @@
// Version 1.2.6
// Version 1.2.7
Function TOfficeObj(n);
Begin

View File

@ -1,4 +1,4 @@
// Version 1.2.6
// Version 1.2.7
Type TSDocxFile = Class
///Version: V1.0 2022-09-20

View File

@ -1,4 +1,4 @@
// Version 1.2.6
// Version 1.2.7
Type TSExcelFile = Class
///Version: V1.0 2022-08-08

View File

@ -1042,11 +1042,11 @@ Type xlsxWorkBook = Class
Function GetSheetDefaultColWidth(sheet);
Begin
sheet_xml_file := GetSheetXmlFile(sheet);
if not ifObj(sheet_xml_file) then return -1;
if not ifObj(sheet_xml_file) then return nil;
work_node := sheet_xml_file.FirstChildElement('worksheet');
node := work_node.FirstChildElement('sheetFormatPr');
flag := trystrtofloat(node.GetAttribute('defaultColWidth'), width);
return flag ? width : -1;
return flag ? width : nil;
End
Function SetDefaultSheet(sheet);

View File

@ -1,5 +1,13 @@
# 更新日志
## 2023-3-23
### V1.2.7
#### excel
1. `GetSheetDefaultColWidth`默认返回值改为`nil`
## 2023-3-22
### V1.2.6