DocX icon indicating copy to clipboard operation
DocX copied to clipboard

I have an issue with adding bullet list to a doc file

Open patrickstrauss opened this issue 5 years ago • 1 comments

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

patrickstrauss avatar May 21 '20 14:05 patrickstrauss

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.

XceedBoucherS avatar May 26 '20 15:05 XceedBoucherS