Continuous Numbering issue

Home Forums WordprocessingML Continuous Numbering issue

This topic contains 5 replies, has 2 voices, and was last updated by  Manu_TR 7 years, 2 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4095

    Manu_TR
    Participant

    Hello,

    we have a document where it’s listnums continuously increment in the next page as well though it should not. Is there a solution for this?

    Thanks,
    Manu

    #4105

    Eric White
    Keymaster

    Hello Manu,

    I am not certain exactly what you are referring to. Are you having issues with one of the modules in Open-Xml-PowerTools, such as WmlToHtmlConverter?

    #4106

    Manu_TR
    Participant

    Actually it’s a Doc file, we are getting its stream using WordOpenXml property on interop and create a openxml package using it.

    below one is the actual code

    var ListOfRuns = paragraph.Elements().ToList();

    if (ListOfRuns != null && ListOfRuns.Any(a => a.Attributes().Any(e => e.Name.LocalName == “ListItemRun”)))
    {
    ListItem.Append(run.Value);
    }

    Even after the section break the numbering are continuously incremented where it should not.

    #4112

    Manu_TR
    Participant

    Eric,

    I have one more observation here, We are not seeing any <w:lvlOverride w:ilvl=”0″> or <w:lvlRestart w:ilvl=”0″> elements in the NumberingDefinitionsPart of Openxml object created by DOC file. But we see <w:lvlOverride w:ilvl=”0″> element for docx file and it seems to be working fine. so only Doc file format has this numeration continuation issue.

    Thanks,
    Manu

    #4113

    Eric White
    Keymaster

    Sorry, I’m still not clear. Are you saying that the behavior of Word is incorrect? Or the behavior of Open-Xml-PowerTools is incorrect? Which module?

    Best, Eric

    #4114

    Manu_TR
    Participant

    Problem is not with the word.
    I am not seeing required element in numerationDefinitionPart which is used to restart the list nums. That’s why numeration is continuously inceremented in wmltohtmlconverter module.

    This is happening only to DOC file format. I can share you the document if you want it.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.