We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Default Bullet mapping to square (#3F)

The Paragraph.ListFormat.ListLevel.NumberFormat for the attached document renders as follows:

Default: 3F
Disc: 6F
Square: 3F

Both the default bullet and the square bullet are mapping to the same NumberFormat. Is this a bug or am I doing something wrong?

Link to Word file:


Thanks for your inquiry. We will appreciate it if you please share your sample code snippet here as well. It will help us to understand and address your issue exactly.

@tilal.ahmad please see below. I hope this helps:

var characterCode = Encoding.ASCII.GetBytes(Paragraph.ListFormat.ListLevel.NumberFormat);

switch (characterCode[0])
    case 63:
            return "<ul style=\"list-style-type: square;\">\r\n";
    case 111:
            return "<ul style=\"list-style-type: circle;\">\r\n";
            // Default and all other bullet formats will be converted to the disc
            return "<ul>\r\n";


Thanks for sharing the sample code. Please try to use Unicode encoding, it will resolve the issue.

var charcode = Encoding.Unicode.GetBytes(para.ListFormat.ListLevel.NumberFormat);

Thanks so much!