delphiexport-to-excelimport-from-excel

Reading Excel spreadsheets with Delphi


I need to read from and write to Excel spreadsheets using Delphi 2010. Nothing fancy. Just reading and writing values from specific cells and ranges on different sheets. Needs to work without having Excel installed and support Excel 2007.

Some things I've looked at:

Any recommendations? Free would be great, but I'm open to a commercial solution as long as it's reliable and well supported.


Solution

  • TMS Flexcel - I know it looks like a reporting component for Excel (which it does very well and is a very handy tool to have in your toolkit) but it also includes components for reading and displaying Excel files. I've been very impressed with how well Adrian Gallero seems to know the Excel API, including Excel 2007.

    http://www.tmssoftware.com/site/flexcel.asp

    Not free of course, but at 75 Euros I think it's good value.