v1.6.6
This commit is contained in:
+5
-3
@@ -1,8 +1,8 @@
|
||||
path := ExtractFileDir(ExtractFileDir(PluginPath()));
|
||||
{$IFNDEF Win32}
|
||||
path := path + '\\funcext\\TSOffice\\TSXlsxFile.tsf';
|
||||
{$ELSE}
|
||||
path := path + '/funcext/TSOffice/TSXlsxFile.tsf';
|
||||
{$ELSE}
|
||||
path := path + '\\funcext\\TSOffice\\TSXlsxFile.tsf';
|
||||
{$ENDIF}
|
||||
funcs := LoadClassInfo(path);
|
||||
|
||||
@@ -43,6 +43,7 @@ PrintSuccess("GetCellRichText", testing++);
|
||||
|
||||
file.MergeCell('XlsxFile', 'A1', 'C1');
|
||||
PrintSuccess("MergeCell", testing++);
|
||||
file.SetRowHeight('XlsxFile', 1, 60);
|
||||
|
||||
|
||||
style := TOfficeObj('TStyle');
|
||||
@@ -138,7 +139,7 @@ End
|
||||
file.SetColWidth('Functions', 'A', 'A', 120);
|
||||
PrintSuccess('SetColWidth', testing++);
|
||||
|
||||
saveName := utf8toansi("XlsxFile使用帮助.xlsx");
|
||||
saveName := "XlsxFile使用帮助.xlsx";
|
||||
[err, errinfo] := file.SaveAs('', saveName);
|
||||
if err then
|
||||
return PrintError("SaveAs", err, errinfo);
|
||||
@@ -320,6 +321,7 @@ Begin
|
||||
excel.SetCellValue(sheet_name, cell_1, name);
|
||||
excel.MergeCell(sheet_name, cell_1, cell_2);
|
||||
excel.SetCellStyle(sheet_name, cell_1, cell_2, styleid1);
|
||||
excel.SetRowHeight(sheet_name, row, 25);
|
||||
row++;
|
||||
|
||||
desc_arr := obj_info[i]['Desc'];
|
||||
|
||||
Reference in New Issue
Block a user