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

Free Support Forum - aspose.com

Re: Export Comments from Html to Docx format


I am using the aspose.words.14.1.0 dll.

my html is as follows

  • Export (using HttpContext) – works for track changes and not for comments
  • The bullet list numbering does not increase when trying to enter a new bullet point within RadEditor. This needs to be verified.
    My code;
    Document doc = new Document();

    Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc);


    After this i check the comments collection the count is 0.
    I am able to get the revisions by overriding the VisitRun method of documentvisitor class but no comments, as mentioned from the update the comments can be found in the footnote but it also returns empty.


    Hi Suraj,

    Thanks for your inquiry.

    But, when you convert this Html fragment to Word format using Microsoft Word 2013, you’ll observe the same behavior that there are no comments in generated Word docuement. In this case, Aspose.Words’ HTML engine mimics the behavior of Microsoft Word. However, please try importing the following HTML snippet into Aspose.Words’ DOM, in this case, comments will be imported correctly.



    <p style="margin: 0pt">

    <span style="font-family: 'Times New Roman'; font-size: 12pt">Some text is added.</span><a

    name="_cmntref1"></a><a href="#_cmnt1">[AL1]</a></p>


    <hr style="width: 33%; height: 1px; text-align: left" />

    <div id="_cmnt1" style="-aw-comment-author: 'Amy Lee'; -aw-comment-datetime: '2014-05-06T00:00:00';

    -aw-comment-initial: 'AL'">

    <p style="margin: 0pt">

    <a href="#_cmntref1">[AL1]</a><span style="font-family: 'Times New Roman'; font-size: 12pt">Comment




    I hope, this helps.

    Best regards,

    Hi ,

    you are right i am able to import back the comments from html to docx, but now i am facing issue when there are multiple comments on the same text.

    In this case the footnote positions are changed.

    please see my post below



    Hi Suraj,

    Thank you for posting a separate thread for these problems. Please follow this thread for further proceedings.

    Best regards,