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'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;'> </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;'> </span></p>";
doc.LoadHTML(sr, XHTMLValidationType.None);
doc.SaveToFile("D:\\Exported\\Word9.docx");