@alexey.noskov /Team,
How to enable the Numbering Style: 1, 2, 3, … + property.
I used below mentioned code but its not working kindly help me asap.
Kindly find the input and expected output word document.
Expected_output_word_document.docx (20.0 KB)
Input_Word_document96.docx (23.4 KB)
NodeCollection nodes = doc.GetChildNodes(NodeType.Paragraph, true);
foreach (Paragraph para in nodes)
{
if (para.ParagraphFormat.StyleIdentifier == StyleIdentifier.Heading1)
{
para.ListFormat.List = doc.Lists.Add(ListTemplate.NumberDefault);
para.ListFormat.ListLevel.StartAt = 1;
}
}