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.

Mon Feb 12, 2024 11:37 pm

Hello Team,

I am currently facing an issue regarding HTML to Word conversion using Spire Doc:

Below is the HTML code:
<span>By:&nbsp; </span>
<u style="text-decoration:underline">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u>

When we convert this to word the underline doesn't appear. Please refer the attached screenshots.

original_html.png

converted doc with SpireDoc.png

somanwita21
 
Posts: 8
Joined: Mon Feb 27, 2023 9:04 pm

Tue Feb 13, 2024 9:30 am

Hello,

Thank you for your inquiry.
Based on your description, I tested the HTML code you provided using the latest version of Spire.Doc Pack (hot fix) Version:12.2.1, but it did not reproduce the issue you mentioned. I am attaching my test result file for your reference. May I ask if you are using this version of Spire.Doc for testing? If not, I suggest you upgrade to this version of Ice to test again. If the issue still exists after testing, please provide the following information for further investigation. You could attach them here or send them to us via email ([email protected]). Thanks in advance.
1) Your complete test code.
2) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
3) Your application type, such as Console app (. Net 6.0).

Sincerely,
Annika
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.Doc

cron