with XLSBook.XLS.Sheets.Add() do
begin
DisplayName := 'my sheet';
Visible := true;
end;
//what goes here !!!!
What I need to call on TXLSSpreadSheet so it will be refreshed. Invalidate doesn't work. If I save the TXLSReadWriteII4 and reopen it, I can see new sheet although it has default name 'Sheet2', I expected name to be 'my sheet'.
In the current version of TXLSSpreadSheet there is no more "InvalidateSheet (Sheet)" method, it was replaced by "InvalidateSheet ()" method (without parameters).
The problem is that this method is not drawing new worksheets. How do I draw them now?
I installed version 2.00.5 but nothing has changed, still without drawing new sheets in TXLSSpreadSheet component.
Although not view the sheets in the component when the spreadsheet is saved to disk and open in the Excel sheets are displayed correctly, then the problem is with the TXLSSpreadSheet component and not with XLSReadWrite.
PS: Just to be clear: The component must be correctly drawing the sheets, the problem is with the navigation bar at the bottom of the worksheet is not updated, and always displays a single tab named Sheet1.