Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Apr 29, 2021 4:51 am

Hello,

I'm using paragraph.AppendHTML for appending some HTML to Spire.Doc.Document, but I have an issue that when this HTML has a alphabetical ordered list it's converted to a numerical ordered list, for example this HTML:

Code: Select all
<html>
<head>
</head>
<body>
<div class="text">
Group (Numeric)<br />
<b>1. </b>Question one numeric<div style='clear:both'></div>
<ol>
  <li>answer one</li>
  <li>answer two</li>
  <li>answer three</li>
</ol>
Group (Alphabetical)<br />
<b>2. </b>Question two alphabetical<div style='clear:both'></div>
<ol type='A'>
  <li>answer one</li>
  <li>answer two</li>
  <li>answer three</li>
  <li>answer four</li>
  <li>answer five</li>
</ol>
</div>
</body>
</html>


The final Word document will have both lists as numerical, but I need the first list to be numerical and the second list to be alphabetical.

Is there any option that I should use for having the MS Word lists the same as the HTML's?

Regards,

--
N. Lionel

N.Lionel
 
Posts: 4
Joined: Fri Apr 16, 2021 3:36 am

Thu Apr 29, 2021 6:25 am

Hello,

Thanks for your inquiry!

I have reproduced your issue of the wrong alphabetical ordered list and logged it in our issue tracking system with the ticket SPIREDOC-5940 for further investigation. Sorry for the inconvenience caused.

As a temporary method, please use “<ol style="list-style-type:upper-alpha">” to set the alphabetical ordered list.

Anyway, once the issue has any progress, we will inform you ASAP.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Fri Jun 04, 2021 9:06 am

Hello,

Thanks for your patience!

Glad to inform you that we just released Spire.Doc Pack Version:9.6 which fixes the issue that the ol tag was not rendered correctly when appending HTML text. (SPIREDOC-5940).

Please download the fix version from the following links to test.

Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/9.6.0

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.Doc