To make cell bold of an excel using Excel.OpenXml.Table .
The code :
XLTable objXLTable = new XLTable("TEST");
Row<string> objDataRow = new Row<string>(RowType.Data);
for(int i=0; i< 10 ; i++)
{
Cell<string> c1 = new Cell<string>("Row number " + i.toString());
Cell<string> c2 = new Cell<string>("tt" );
Cell<string> c3 = new Cell<string>("bb " );
objDataRow.Add(c1);
objDataRow.Add(c2);
objDataRow.Add(c3);
}
objXLTable.Add(objDataRow);
I want to make c1 cell bold .What i have tried :
Cell<string> c1 = new Cell<string>("Row number " + i.toString(),10);
ANd
c1.BoldIndex =10 ;
But no effect . c1. style is not there .any help will be appreciated