HotXLS Delphi Excel Read Write Library / Component Developers Guide |
Var Workbook: IXLSWorkbook; begin Workbook := TXLSWorkbook.Create; {create new Workbook} Workbook.Worksheets.Add; Workbook.SaveAs('book.xls'); Workbook.Sheets[1].Name := 'NewName'; Workbook.Save; //save to book.xls end;
Var Workbook: IXLSWorkbook; begin Workbook := TXLSWorkbook.Create; Workbook.Open('book.xls'); Workbook.Sheets[1].Name := 'NewName'; Workbook.Save; //save to book.xls end;
Copyright©2007-2019 loslab.com |