v1.1.3
This commit is contained in:
@@ -517,6 +517,14 @@ protect.SelectUnLockedCells := true;
|
||||
excel.ProtectSheet(sheetName2, protect);
|
||||
println("[success] ProtectSheet");
|
||||
|
||||
// SetDefaultFont
|
||||
font := tofficeobj('tfont');
|
||||
font.name := '黑体';
|
||||
font.size := 13;
|
||||
font.themecolor := 1;
|
||||
excel.SetDefaultFont(font);
|
||||
println("[success] SetDefaultFont");
|
||||
|
||||
[err, errmsg] := excel.saveas("", "d:\\temp\\test.xlsx");
|
||||
println("saveas : {}", err);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user