I hope somebody will help me to get started.
I want to open a Spreadsheet from Delphi, in a Windows environment, to read Data via OLE. With MS-Office no problem. I hoped there is a compatible interface, because several Macros in Excel-Sheets are running with Calc. But Objekts and Methodes are too different.
I tried to record a macro with Calc opening a Excel file, but it did not work.
For example this is the way to get an Excel-Sheet:
Code: Select all
excel := CreateOleObject('Excel.Application');
excel.Workbooks.Open( FileName );
Sheet := excel.ActiveWorkbook.Worksheets[SheetName];
It would be nice, if anyone would show me the way to start.
Thank you to all
Peter