Board index » delphi » Excel Version with Early Binding

Excel Version with Early Binding


2004-08-26 04:33:13 PM
delphi71
Hi, does anyone know how to get the version of Excel with early binding
please?
It's easy with late binding :
aExcel := CreateOleObject('Excel.Application');
ExcelVersion := aExcel.version;
aExcel.quit;
but with early binding, using something like:
Excel.Connect; (Excel is TExcelApplication)
ExcelVersion := Excel.Application.Version ---- doesn't work as Version is
not a property of Application.
Any thoughts on this would be great.
Thanks
David
 
 

Re:Excel Version with Early Binding

ExcelVersion := Excel.Version
"David Smith" <XXXX@XXXXX.COM>writes
Quote
Hi, does anyone know how to get the version of Excel with early binding
please?

It's easy with late binding :

aExcel := CreateOleObject('Excel.Application');
ExcelVersion := aExcel.version;
aExcel.quit;

but with early binding, using something like:

Excel.Connect; (Excel is TExcelApplication)
ExcelVersion := Excel.Application.Version ---- doesn't work as Version is
not a property of Application.

Any thoughts on this would be great.

Thanks

David