I am trying to use this code for changes the font inside cells
void tblPDF_BeginCellLayout(object sender, BeginCellLayoutEventArgs args)
{
var csfont = new Font("Arial", 8.0f);
var cspdfFont = new PdfTrueTypeFont(csfont, true);
var font = new Font("Calibri", 8.0f);
var pdfFont = new PdfTrueTypeFont(font, true);
if (args.CellIndex == 2)
{
(sender as Syncfusion.Pdf.Tables.PdfLightTable).Style.DefaultStyle.Font = cspdfFont;
}
else
{
(sender as Syncfusion.Pdf.Tables.PdfLightTable).Style.DefaultStyle.Font = pdfFont;
}
}
But the font is not changes at all! Any Ideas?