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

Free Support Forum - aspose.com

Bullet point issue using InsertHTML() in Aspose.Words

Hi,

Project brief: We have an automated contract project that will generate a word document specific to a client. It involves generating a document from HTML specific to the client.

Problem: Part of the document involves bullet pointing some paragraphs like so:

  1. I am a letter:
    1. I am a number within a letter
    2. I am another number within a letter
      1. I am a number within a number within a letter
  2. I am another letter

The HTML for this particular section looks like this:

  1. I am a letter:
    1. i am a number within a letter
    2. i am another number within a letter
      1. i am a number within a number within a letter
  2. i am another letter

The output I am getting looks like this:

  1. I am a letter:
    1. i am a number within a letter
    2. i am another number within a letter

i. i am a number within a number within a letter

  1. i am another letter

This is not correct as point’s a. & b. should be 1. & 2. I have tried using both

and

, but still no joy.

The code I’m using simply inserts the HTML and saves the document:

var document = new Document();

var builder = new DocumentBuilder(document);

builder.InsertHtml(html);

document.Save(targetFilePath, SaveFormat.Docx);

Can you please offer any help?

Thanks in advance.

Hi

Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards.

Hi Alexey,

Any news regarding this problem?

Regards

Joe

Hi Joe,

Thanks for your request. unfortunately, the issue is still unresolved. We will let you know once there is some progress with this issue.

Maybe as a workaround, you can try building list using DocuemntBuidler as described here:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.lists.listlevel.html

Best regards.

The issues you have found earlier (filed as 14426) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as WORDSNET-1203) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(6)