DocX
DocX copied to clipboard
I have an issue with adding bullet list to a doc file
I can add a bullet list to an empty doc file just fine. The problem comes when I loaded in a document from Azure blob storage and try to add a bullet list in it. No matter what I do, it always come out as numbered list. What can I do to try and fix this issue? Here is a sample of the code I am using var BulletedList = Doc.AddList("text", 0, listType: ListItemType.Numbered); Doc.AddListItem(BulletedList, "text", 1);
Note: the downloaded document only contains an image and a text box, nothing else
Hi,
Thank you for pointing this out. This will be fixed in v1.8.
In the meantime, you can go in file Xceed.Document.NET/src/List.cs, in method ValidateDocXNumberingPartExists(), add the following line: Document._numberingPart = Document._package.GetPart( numberingUri ); after "Document._numbering =..." inside the condition.
Thank you.