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

Free Support Forum - aspose.com

Set default Font in workbook

Hi Guys,

Please paste the code for how to set default font name/font size to a workbook.we are using trail version of java.cells

Regards,

Muin

Hi,


Please see the following sample code for your requirements:

Sample code:
Workbook wb = new Workbook();
Style style = wb.getDefaultStyle();
Font font = style.getFont();
font.setName(“Tahoma”);
font.setSize(8);
style.setFont(font);
wb.save(“test.xls”);

Thank you.