Hi Team,
I am using Aspose Words .NET to embed HTML content in text document.
I am getting issue while inserting list types HTML content in Word document.
Bullet ed list with empty Circle and Square type and roman number is not inserted in document.
See below sample code:-
string htmltext1 = "<html><body><ul style='list-style-type: circle;'><li>Circle 1</li></ul><p> </p><p> </p><ul style='list-style-type: square;'><li>Square1</li></ul></html></body>";
string htmltext2 = "<html><body><ol style='list-style-type: lower-greek;'><li>Bullet1</li></ol><p> </p><ol style='list-style-type: lower-alpha;'><li>Bullets2</li></ol><p> </p><ol style='list-style-type: lower-roman;'><li>Bullet3</li></ol></html></body>";</div>
// This is instance
DocumentBuilder.InsertHtml(htmltext1);
DocumentBuilder.InsertHtml(htmltext2);
Result is as below:
<ul style="margin-top:0in" type="disc">
<li>Circle 1</li>
</ul>
<p> </p>
<p> </p>
<ul style="margin-top:0in" type="disc">
<li>Square1</li>
</ul>
<p> </p>
<ol style="margin-top:0in" start="1" type="1">
<li>Bullet1</li>
</ol>
<p> </p>
<ol style="margin-top:0in" start="1" type="1">
<li>Bullets2</li>
</ol>
<p> </p>
<ol style="margin-top:0in" start="1" type="1">
<li>Bullet3</li>
</ol>
Please help in solving this issue.
Regards,
Nakul