HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

IXLSWorkbook Interface

Unit: lxHandle
Represents a Microsoft Excel Workbook.

Properties

Methods

Example

This example creates new Workbook and saves it into C:\book.xls and C:\book.html files.
var Workbook: IXLSWorkbook;
begin
  Workbook := TXLSWorkbook.Create;
  Workbook.Sheets.Add;
  Workbook.Sheets[1].Name := 'Sheet1';
  {...}
  Workbook.SaveAs('C:\book.xls');
  Workbook.SaveAsHTML('C:\book.html');
  Workbook.SaveAsRTF('C:\book.rtf');
end;
Copyright©2014 loslab.com