Applying 2 fonts for the same data in a single cell

Hi Team,


I have a question regarding below excel sheet. Can we apply multiple fonts or styles for a single cell at a time.

The attached report was generated from Cognos.

In the attached excel if you observe “Country: Argentina”, "Broad Industry Code: Banking " the these cells, “Country:” in bold font and “Argentina” in normal font, in single cell. Then at that time how can we apply font.setBold(true) and font.setBold(false) at a time?

Could you please help me to solve this issue…

Thanks & Regards,
Balakrishna Paluvari.

Hi Balakrishna,


Thank you for considering Aspose APIs.

Please check this article for the details & the code snippet to apply different styling to the text in a single cell. Please feel free to contact us back in case you face any difficulty.