Free Support Forum - aspose.com

Cell Text Bold

Hi,

I need to bold a part of Text of cell. Remaining Text will be in normal form just like the following Line.

To: Mr. X

Line must be in a cell. in the above line "To:" is bold and "Mr. X" is in normal from.

What shoul i do?

Thanks

Mamun

Hi Mamun,

See following codes:

excel.Worksheets[0].Cells["A1"].PutValue("To: Mr. X");
excel.Worksheets[0].Cells["A1"].Characters(0, 3).Font.IsBold = true;