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

Free Support Forum - aspose.com

Nested numbered list with insertHTML input

A4.pdf (106.6 KB)
I need to create a nested numbered list exactly like section C. of the attached pdf file using Words for .NET but using formatted HTML text. If I create the lists using writeln and plain text then everything is fine but if I use insertHTML then the numbers and the indents are not correct. What do I need to do using vb.net to make an exact replica of the section C with formatted HTML. Reading other post I understand that the document takes it information from the insertHTML formatted text but then I also lose the indentation. Thanks


Please see these documents (HTML-DOCX.zip (6.4 KB)) and try running the following code:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.InsertHtml(File.ReadAllText(MyDir + "18.4.html"));           
doc.Save(MyDir + @"18.4.docx");

This looks good- thanks