Board index » delphi » Late binding Excel displaying Formula Bar
Jay Sylvester
![]() Delphi Developer |
Late binding Excel displaying Formula Bar2004-01-08 07:35:19 PM delphi55 I am using Excel to display a dynamically created spreadsheet within a browser window. I create, format and save the spreadsheet using early binding and ensure that the formula bar is not displayed as follows: intlcid:= GetUserDefaultLCID; vExcel:= TExcelApplication.Create(nil); vExcel.DisplayFormulaBar[intlcid]:= False; When required, the spreadsheet is displayed in a browser window within my application using late binding. I need to ensure that when my application closes, Excel will default to showing the formula bar next time it is opened. Can someone please give me the equivalent code to below, when using late binding, as the following does not work: intlcid:= GetUserDefaultLCID XLApp := CreateOLEObject('Excel.Application'); XLApp.DisplayFormulaBar[intlcid]:= True; Thanks in advance |