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.

Tue Oct 01, 2024 3:48 am

I added a table like in image 1 into CKEditor, then I used appendHtml to export it to a DOC file, but the table borders are missing as shown in image 2. What should I do?

here is ckeditor html:
<ol> <li> <span new=\"\"><strong><u>TSBĐ bao gồm:</u></strong></span> </li> </ol> <figure class=\"\&quot;table\&quot;\"> <figure class=\"table\"> <table border=\"\&quot;1\&quot;\" cellspacing=\"\&quot;0\&quot;\" cellpadding=\"\&quot;0\&quot;\"> <tbody> <tr> <td width=\"\&quot;34\&quot;\"> <p> <span new=\"\"><strong>TT</strong></span> </p> </td> <td width=\"\&quot;160\&quot;\"> <p> <span new=\"\"><strong>Loại TSBĐ</strong></span> </p> </td> <td width=\"\&quot;96\&quot;\"> <p> <span new=\"\"><strong>Chủ sỡ hữu</strong></span> </p> </td> <td width=\"\&quot;96\&quot;\"> <p> <span new=\"\"><strong>Giá trị định giá</strong></span> </p> </td> <td colspan=\"\&quot;2\&quot;\" width=\"\&quot;60\&quot;\"> <p> <span new=\"\"><strong>Tỷ lệ BĐ đề xuất</strong></span> </p> </td> </tr> <tr> <td width=\"\&quot;34\&quot;\"> <p> <span new=\"\">1</span> </p> </td> <td solid=\"\" width=\"\&quot;160\&quot;\"> <p> <span new=\"\">TSĐB bổ sung là STK/HĐTG/BĐ</span> </p> </td> <td solid=\"\" width=\"\&quot;96\&quot;\"> <p> <span new=\"\">Công ty / TVGV/ vợ/ chồng/ quan hệ ruột thịt với TVGV công ty</span> </p> </td> <td solid=\"\" colspan=\"\&quot;3\&quot;\" width=\"\&quot;156\&quot;\"> <p> <span new=\"\">Theo quy định&nbsp;</span> </p> </td> </tr> <tr> <td width=\"\&quot;34\&quot;\"> <p> <span new=\"\">2</span> </p> </td> <td solid=\"\" width=\"\&quot;160\&quot;\"> <p> <span new=\"\">Quyền đòi nợ hình thành trong tư</span> </p> </td> <td solid=\"\" width=\"\&quot;96\&quot;\"> <p> <span new=\"\">Công ty</span> </p> </td> <td solid=\"\" colspan=\"\&quot;2\&quot;\" width=\"\&quot;103\&quot;\"> <p> <span new=\"\">Là giá trị tr</span> </p> </td> <td solid=\"\" width=\"\&quot;53\&quot;\"> <p> <span new=\"\"><strong>70%</strong>&nbsp;</span> </p> </td> </tr> <tr> <td width=\"\&quot;34\&quot;\"> <p> <span new=\"\">3</span> </p> </td> <td solid=\"\" width=\"\&quot;160\&quot;\"> <p> <span new=\"\">Nhận kèm theo hàng tồn kho luân chuyển hình thành từ&nbsp;</span> </p> </td> <td solid=\"\" colspan=\"\&quot;4\&quot;\" width=\"\&quot;252\&quot;\"> <p> <span new=\"\">Tài sản nhận kèm, không tính giá trị phát vay</span> </p> </td> </tr> <tr> <td width=\"\&quot;34\&quot;\"> <p> <span new=\"\">4</span> </p> </td> <td solid=\"\" width=\"\&quot;160\&quot;\"> <p> <span new=\"\">Thư bảo lãnh của&nbsp;</span> </p> </td> <td solid=\"\" colspan=\"\&quot;4\&quot;\" width=\"\&quot;252\&quot;\"> <p> <span new=\"\">Tài sản nhận kèm, không làm cơ sở giải ngân</span> </p> </td> </tr> </tbody> </table> </figure> </figure>

anhpd6789
 
Posts: 1
Joined: Wed Aug 21, 2024 9:28 am

Wed Oct 02, 2024 3:25 am

Hello,

Thanks for your inquiry.
I used the latest Spire.Doc Pack(hot fix) Version:12.8.12 tested your case, but did not reproduce the issue you mentioned. I have attached my results and test code for your reference. If you are not using this version, please upgrade and retest.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 732
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.Doc

cron