Adding Autofilter & Frozen Panes

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
DrTob
Posts: 20
Joined: Tue Jul 19, 2011 2:31 pm

Adding Autofilter & Frozen Panes

Post by DrTob »

in XLSReadWriteII4 I add an autofilter with

Code: Select all

XLS.Sheet[0].Autofilters.Add(0, 4, 3, 4);
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:

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];
In V5 this does not work. The Option soFrozenPanes does not exist anymore.
DrTob
Posts: 20
Joined: Tue Jul 19, 2011 2:31 pm

Re: Adding Autofilter & Frozen Panes

Post by DrTob »

still not solved...
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Adding Autofilter & Frozen Panes

Post by larsa »

Hello

Autofilters is added in update. 5.20.03

In order to create frozen/split panes use FreezePanes/SplitPanes methods: XLS[x].FreezePanes(Col,Row);
Lars Arvidsson, Axolot Data
Post Reply