Insert HTML - Global Font issue - Inside table td

Hello support,

I am using InsertHTML method while creating the Doc file.
My html contains tables, inside tables some data have predefined Font name and font sizes and some of them doesnt have any font names and font sizes.

I need to use global font name and font size for the undefined font names and font size inside table.

Global font name and font size only works outside table. Inside table only Font name is working.

Please advise me.

Thanks

Hi Patrick,

Thanks for your inquiry. You can write CSS in your html for table's cells and import the html into Aspose.Words DOM. You may also apply the styles to table's cell after importing the html into Aspose.Words DOM.

Please manually create your expected Word document using Microsoft Word and attach it here for our reference. We will investigate how you want your final Word output be generated like. We will then provide you more information on this along with code.

Hi Tahir,

This html content comes from diffrent users. So its not possible to set style inside each “td”.
We have to give global styles for the entire HTML Content, If there is ANY User defined Styles EXISTS, that STYLE should remain as it is.

Attached Expected document from this HTML content. Right now Aspose Not setting the Correct Font Size inside td. If you have any workaround thats also fine for us.

Thanks

Hi Tahir,

The latest DLL from Aspose Word working fine as Expected. Thanks for your time.

Hi Patrick,

Thanks for your feedback. It is nice to hear from you that your problem has been solved. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.