Adding Autofilter & Frozen Panes
Posted: Thu Sep 05, 2013 9:03 am
in XLSReadWriteII4 I add an autofilter with
in Version 5 the method "ADD" does not exist. How can I create an autofilter in XLSReadWriteII5?
In my existing Code, I can Create fixed header rows with to following code:
In V5 this does not work. The Option soFrozenPanes does not exist anymore.
Code: Select all
XLS.Sheet[0].Autofilters.Add(0, 4, 3, 4);
In my existing Code, I can Create fixed header rows with to following code:
Code: Select all
sheet.Pane.SplitColX := 0;
sheet.Pane.SplitRowY := FHeaderRows;
sheet.Pane.TopRow := FHeaderRows;
sheet.Pane.PaneType := ptFrozen;
sheet.Pane.ActivePane := 0;
sheet.Options := sheet.Options + [soFrozenPanes];