We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Odd ListID values with numbered headings

Hi,



We are trying to work out how ListID works when we have numbered headings and we aren’t sure if it is a bug in Aspose or the expected behaviour. If the latter, then we would like to know why this is the expected behaviour: i.e. what are the rules involved?



In one document I have created a simple numbered list and twice in that list set “restart numbering”. My list looks like this:



1

2

1

2

1

2



And the ListID changes for each restart. So I have:



1 (ListID=1)

2 (ListID=1)

1 (ListID=2)

2 (ListID=2)

1 (ListID=3)

2 (ListID=3)





However when I do the equivalent type of simple test with numbered headings I get odd behaviour. I have six headings that look like this in Word:



1. L1a

2. L2a

1. L1b

2. L2b

1. L1c

2. L2c



And I get the following results for ListID:





1. L1a (ListID=5)

2. L2a (ListID=5)

1. L1b (ListID=7)

2. L2b (ListID=5)

1. L1c (ListID=9)

2. L2c (ListID=5)



So that item L2b that I expected should have ListID=7 actually has ListID=5, and the same for L2c that I expected to have ListID=9.





Regards,

Mark.