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.

Fri Dec 10, 2021 10:36 am

Hi,

I'm experiencing an issue with the Spire.Doc tool: When we have Roman (latin) number or Alphabet numbers in an html document.
When converting to Word Document, then the Numbering is changed to normal numeric number.

The attached zip file includes the "Expected" output and "Generated" output images to compare
The code written
And the raw html file of the content

Code Used:

Code: Select all

Document doc = new Document();
var html2 = "    <ol style='margin-top:0;margin-bottom:0;'>     <li style='text-align:justify;margin:0pt 0pt 0pt -18pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'>That the deputation be received and noted.</span></li><li style='text-align:justify;margin:0pt 0pt 0pt -18pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'>That (residents name) be thanked for his/her/their presentation and any notes that comply with Council&#39;s Code of Practice for Meeting Procedures and the laws of defamation, be included in the Minutes.</span></li><li style='text-align:justify;margin:0pt 0pt 0pt -18pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'>Another Test Content</span><ol start='1' style='margin-top:0;margin-bottom:0;'>      <li style='text-align:justify;margin:0pt 0pt 0pt 18pt;list-style-type:lower-latin ;color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'>Alphabet simple</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 18pt;list-style-type:lower-latin ;color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Alphabet simple 2</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 18pt;list-style-type:lower-latin ;color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Alphabet simple 3</span></li></ol>     </li><li style='text-align:justify;margin:0pt 0pt 0pt -18pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>With Upper Case numbers</span><ol start='1' style='margin-top:0;margin-bottom:0;'>      <li style='text-align:justify;margin:0pt 0pt 0pt 54pt;list-style-type:upper-latin;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Upper Case Content</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 54pt;list-style-type:upper-latin;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Upper Case Two</span></li></ol>     </li><li style='text-align:justify;margin:0pt 0pt 0pt -18pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>With Roman numbers simple</span></li></ol>    <ol start='1' style='margin-top:0;margin-bottom:0;'>     <li style='text-align:justify;margin:0pt 0pt 0pt 0pt;list-style-type:lower-roman;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Test RN 1</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 0pt;list-style-type:lower-roman;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Test RN 2</span></li></ol>    <ol start='6' style='margin-top:0;margin-bottom:0;'>     <li style='text-align:justify;margin:0pt 0pt 0pt -18pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>With Upper Romain</span></li></ol>    <ol start='1' style='margin-top:0;margin-bottom:0;'>     <li style='text-align:justify;margin:0pt 0pt 0pt 0pt;list-style-type:upper-roman;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Upper RN 1</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 0pt;list-style-type:upper-roman;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Upper RN 2</span></li></ol>    <ol start='7' style='margin-top:0;margin-bottom:0;'>     <li style='text-align:justify;margin:0pt 0pt 0pt -20pt;list-style-type:decimal;color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Another Numbering</span><ul style='margin-top:0;margin-bottom:0;'>      <li value='7' style='text-align:justify;margin:0pt 0pt 0pt 92pt;list-style-type:disc;color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Bullet 1</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 92pt;list-style-type:disc;color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>Bullet 2</span></li><li style='text-align:justify;margin:0pt 0pt 0pt 92pt;list-style-type:disc;color:#000000;background-color:transparent;font-family:Calibri;font-size:11pt;font-weight:normal;font-style:normal;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>&nbsp;</span></li></ul>     </li></ol>    <p style='text-align:left;text-indent:0pt;margin:0pt 0pt 0pt 0pt;'><span style='color:#000000;background-color:transparent;font-family:'Times New Roman';font-size:11pt;font-weight:normal;font-style:normal;'>&nbsp;</span></p>";

doc.LoadHTML(sr, XHTMLValidationType.None);
doc.SaveToFile("D:\\Exported\\Word9.docx");


infra
 
Posts: 18
Joined: Tue Apr 03, 2018 12:05 pm

Mon Dec 13, 2021 2:54 am

Hello,

Thank you for your inquiry.
I tested your code and did reproduce your issue. I have logged the issue into our bug tracking system with the ticket number SPIREDOC-7104. Our development team will investigate and fix it. Once it is resolved, I will inform you in time. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Tue Dec 14, 2021 5:41 am

Hi Annika,

Is there any Estimated time line when the fix will be released please?

infra
 
Posts: 18
Joined: Tue Apr 03, 2018 12:05 pm

Tue Dec 14, 2021 7:54 am

Hello,

Thank you for your follow-up.
The good news is that our development team has solved the issue you mentioned(HTML to Word, the Numbering is changed to normal numeric number), the issue is now in the testing phase. If the test goes well, we will provide a hotfix for you as soon as possible.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Mon Dec 20, 2021 4:18 am

Hi Annika,

Do we have an ETA for the release of the hotfix please?

infra
 
Posts: 18
Joined: Tue Apr 03, 2018 12:05 pm

Mon Dec 20, 2021 6:36 am

Hello,

Thank you for your follow-up.
Considering your situation, we compiled a temporary version for you. I have confirmed your issue has been resolved in this version. Please download and test with it. Besides, I will inform you ASAP when the official version is released.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Wed Dec 22, 2021 4:19 am

Hi Annika,

We have tested the temporary release.
Issue is fixed. Waiting for the official release to update our application with this fix

Thanks

infra
 
Posts: 18
Joined: Tue Apr 03, 2018 12:05 pm

Wed Dec 22, 2021 5:56 am

Hi,

Thank you for your feedback.
Once the official version is released, I will inform you immediately.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Wed Jan 05, 2022 11:05 am

Hi Annika,

Greetings for the new year.

Could you give us an idea on when the official release would be?

Thanks.

infra
 
Posts: 18
Joined: Tue Apr 03, 2018 12:05 pm

Thu Jan 06, 2022 1:48 am

Hello,

Thank you for your follow-up.
Good news that the new version of Spire.Office for .NET will be released next week. Hope you can wait patiently.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Mon Jan 17, 2022 4:33 am

Hi Annika,

Has the new version been released?

Regards

infra
 
Posts: 18
Joined: Tue Apr 03, 2018 12:05 pm

Mon Jan 17, 2022 10:31 am

Hello,

Thanks for following up.
I'm sorry that our testing team found some unexpected problems while testing the total code, which prevented the official version from being released. However, we plan to release a new version within this month. Once the official version is released, I will inform you immediately.


Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Thu Jan 20, 2022 8:57 am

Hello,

Thanks for your patience!

Glad to inform you that we just released Spire.Office Platinum(Hotfix) Version:7.1.2 .
Please download the fix version from the following links to test.
Website link:
https://www.e-iceblue.com/Download/download-office-for-net-now.html
Nuget link:
https://www.nuget.org/packages/Spire.Office/7.1.2
https://www.nuget.org/packages/Spire.Officefor.NETStandard/7.1.2

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1651
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.Doc