Hey All!
I need to change default font in my workbook.
How can I do it?
Currently, you can only change the default font height, with the Workbook.DefaultFontHeight property. But in 12.1, one of the new features will be the ability to control the default style and font in the workbook.
Give Me, please, an example how to change default font in workbook to Times New Roman, height 14.
As I said in my previous post, the default font name cannot be changed currently. You can set the default font height to 14 point by setting the Workbook.DefaultFontHeight property (defined in twips) to 14*20, or 280. However, when 12.1 is released, you will be able to change the default font like this:
IWorkbookFont defaultFont = workbook.Styles.NormalStyle.StyleFormat.Font;defaultFont.Name = "Times New Roman";defaultFont.Height = 280;