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?
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”)))
Even after the section break the numbering are continuously incremented where it should not.
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.
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?
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.
You must be logged in to reply to this topic.