I'm probably missing something quite obvious, but I can't see how to freeze the top (&/or left) pane(s).
A clue would be appreciated.
Freeze Panes
Re: Freeze Panes
Hello
You can use the following code:
You can use the following code:
Code: Select all
var
XLS[0].Pane.TopRow := 5;
XLS[0].Pane.SplitRowY := 4;
XLS[0].Pane.PaneType := ptFrozen;
Lars Arvidsson, Axolot Data
Re: Freeze Panes
While this works, there seems to be a minor bug.
When opening the spreadsheet, the top row is displayed twice. Scrolling the sheet fixes this and, if the workbook is saved, it displays correctly on next open.
When opening the spreadsheet, the top row is displayed twice. Scrolling the sheet fixes this and, if the workbook is saved, it displays correctly on next open.
Re: Freeze Panes
Can't get frozen panes working for Excel 97. The code above does nothing.
There is also TXLSWorksheet.FreezePanes method, but it doesn't work either, and it causes document scroll failure.
Tested on version 5.10.16. Please help.
There is also TXLSWorksheet.FreezePanes method, but it doesn't work either, and it causes document scroll failure.
Tested on version 5.10.16. Please help.