v1.1.4
This commit is contained in:
+6
-3
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user