Skip to content

List numbering continues no matter what you pass as startNumber #7

@kjohann

Description

@kjohann

I know it has been a while since there has been any activity on this repo, but since I am having an issue regarding lists in DocX, I thought it should be posted here. I have also made an issue on the CodePlex site: https://docx.codeplex.com/workitem/13437

What happens is that any numbered list inserted into a document when a numbered list is already present, continues numbering. Meaning that I get something like this:

1 List 1, Item 1
2 List 1, Item 2

Some paragraph

3 List 2, Item 1
4 List 2, Item 2

What I want, is that the second lists starts numbering on 1. This never happens, even if I pass 1 as startNumber (I've tested with passing it to the AddList method and the AddListItem method).

In the numbering.xml file, I can see that both numIds and abstractNumIds seem to be generated correctly. The two lists have different numIds which each has its own abstractNumId. Might this be a bug with Word itself? Or some incompatability with Word 2010? I assume that this has worked at some point since you have an example here: http://blog.tnwdevlabs.com/2012/09/06/docx/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions