Sign UpSign Up   Sign InSign In Welcome Guest,
Live Chat Live Chat

Bullet point issue using InsertHTML() in Aspose.Words

Last post 04-07-2010, 2:35 AM by aspose.notifier. 4 replies.
Sort Posts: Previous Next
  •  02-08-2010, 8:27 AM 221218

    Bullet point issue using InsertHTML() in Aspose.Words .NET

    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:

    <ol type="A">

                    <li>I am a letter:

                                    <ol type="1">

                                    <li>i am a number within a letter</li>

                                    <li>i am another number within a letter

                                                    <ol type="i">

                                                                    <li>i am a number within a number within a letter</li>

                                                    </ol>

                                    </li>

                                    </ol>

                    </li>

                    <li>i am another letter</li>

    </ol>

     

    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 <ol type="1"> and <ol type="#">, 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.

     
  •  02-08-2010, 9:29 AM 221229 in reply to 221218

    Re: Bullet point issue using InsertHTML() in Aspose.Words

    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.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  02-17-2010, 8:24 AM 222682 in reply to 221229

    Re: Bullet point issue using InsertHTML() in Aspose.Words

    Hi Alexey,

    Any news regarding this problem?

    Regards

    Joe

     
  •  02-17-2010, 11:31 AM 222711 in reply to 222682

    Re: Bullet point issue using InsertHTML() in Aspose.Words

    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.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  04-07-2010, 2:35 AM 231050 in reply to 221218

    Re: Bullet point issue using InsertHTML() in Aspose.Words

    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.
     
View as RSS news feed in XML