Direct reading and writing Excel files
LibXL is a library that can read and write Excel files. It doesn't require Microsoft Excel and .NET framework, combines an easy to use and powerful features. Library can be used to
Example
LibXL is a library that can read and write Excel files. It doesn't require Microsoft Excel and .NET framework, combines an easy to use and powerful features. Library can be used to
- Generate a new spreadsheet from scratch
- Extract data from an existing spreadsheet
- Edit an existing spreadsheet
Example
Code:
var
Book: TBook;
Sheet: TSheet;
begin
Book := TBinBook.Create; // use TXmlBook() for xlsx
Sheet := Book.addSheet('Sheet1');
Sheet.writeStr(2, 1, 'Hello, World !');
Sheet.writeNum(3, 1, 1000);
Book.save('example.xls');
Book.Free;
end;