We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem of setting font to verdana


How i will set the font name to verdana- bold and size to 10, i have written this but not worked





Hello Rakesh,

Please try the following code lines to achieve your desired results.

row22.DefaultCellTextInfo.FontName = "Verdana";
row22.DefaultCellTextInfo.IsTrueTypeFontBold = true; // Use this property to get the desired font effect
row22.DefaultCellTextInfo.FontSize = 20;

But, before you set the font property to Bold or Italic, make sure that the Bold or Italic version of specific font is installed over machine or not. In this case make sure "Verdana Bold" is installed over machine.