NativeExcel suite v3.x

IXLSWorkbook interface

Unit: nExcel
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 © NikaSoft 2004-2013