I am trying to set the Default Font Size for generated Word Documents, but when the document is opened, the Font Size falls back to 12.
I am using the following to set the Font Size and Font Name:
Document document = new Document(); document.CompatibilityOptions.OptimizeFor(Aspose.Words.Settings.MsWordVersion.Word2013); document.Styles.DefaultFont.Name = 'Arial'; document.Styles.DefaultFont.Size = 36;
The Default Font name applies correctly when the document is opened, but for some reason the Font Size defaults to 12 once the document is opened and not as 36.
Can you please assist me if I am doing something wrong?