Continuous Numbering issue
- This topic has 5 replies, 2 voices, and was last updated 9 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Home › Forums › WordprocessingML › Continuous Numbering issue
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?
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.
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
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
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.