This commit is contained in:
csh
2023-02-02 14:45:21 +08:00
parent 8276de4e92
commit bdf358b39b
12 changed files with 194 additions and 37 deletions
+6 -3
View File
@@ -519,12 +519,15 @@ println("[success] ProtectSheet");
// SetDefaultFont
font := tofficeobj('tfont');
font.name := '黑体';
font.size := 13;
font.themecolor := 1;
font.Name := '黑体';
font.Size := 13;
font.ThemeColor := 1;
excel.SetDefaultFont(font);
println("[success] SetDefaultFont");
tfont := excel.GetDefaultFont();
println("[success] GetDefaultFont , name = {}, size = {}, themecolor = {}", tfont.Name, tfont.Size, tfont.ThemeColor);
[err, errmsg] := excel.saveas("", "d:\\temp\\test.xlsx");
println("saveas : {}", err);