Free Support Forum -

Table data copied from Excel getting bold format when exported to HTML


We’re experiencing an issue where an Excel table pasted into a Word document has bold formatting applied to the text in any cell without a background color when saved as an HTML document using Aspose Words.

Some background info:

1. We’re pasting the Excel data into the Word document as a Windows Meta File formatted image.

2. We’re converting all images in an Aspose Words file to PNG format to minimize file size without significant loss of fidelity prior to saving as HTML.

This is the appearance of the source table in Excel:

This is the appearance of the table rendered in the Aspose Words converted HTML file:
<!–[if !mso]>

v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);}

<![endif]–><!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}


We’re currently using version 15.5 of Aspose Words.

Please advise.

Hi there,

Thanks for your inquiry. Could you please attach your input Word document here for testing? I will investigate the issue on my side and provide you more information.