Hi
Is there a method similar to Document.ConvertNumbersToText method in Aspose?
I can find a ticket id in very old thread. Is the feature implemented?
Sample document: 9.docx (20.1 KB)
Expected output: 9_out.docx (20.2 KB)
Hi
Is there a method similar to Document.ConvertNumbersToText method in Aspose?
I can find a ticket id in very old thread. Is the feature implemented?
Sample document: 9.docx (20.1 KB)
Expected output: 9_out.docx (20.2 KB)
Unfortunately, this feature WORDSNET-1271 is not available at the moment in Aspose.Words. We will inform you via this forum thread once this feature is available. We apologize for any inconvenience.
As a workaround of this issue, you can use following code example. Hope this helps you.
Document doc = new Document(MyDir + "9.docx");
doc.UpdateListLabels();
foreach (Paragraph paragraph in doc.GetChildNodes(NodeType.Paragraph, true))
{
if (paragraph.IsListItem)
{
ListLabel label = paragraph.ListLabel;
if (paragraph.ListFormat.ListLevel.NumberStyle == NumberStyle.Bullet)
{
paragraph.InsertBefore(new Run(doc, "•" + ControlChar.Tab), paragraph.FirstChild);
}
else
paragraph.InsertBefore(new Run(doc, label.LabelString + ControlChar.Tab), paragraph.FirstChild);
paragraph.ListFormat.RemoveNumbers();
}
}
doc.Save(MyDir + "21.8.docx");
Ok. Thanks. I will give a try.