I have this code (simplified):
- Code: Select all
Document document = new Document();
document.LoadFromFile("test.dotx", FileFormat.Dotx);
Console.WriteLine(document.Styles.FindByName(BuiltinStyle.Normal.ToString()).CharacterFormat.FontSize); //Result = 11
document.InsertTextFromFile("test2.docx", FileFormat.Docx);
Console.WriteLine(document.Styles.FindByName(BuiltinStyle.Normal.ToString()).CharacterFormat.FontSize); //Result = 14
After "InsertTextFromFile" the FontSize of the builtin Style "Normal" changed to 14. I cannot figure out why. It is not defined in either test.dotx or test2.docx.
What is the problem here?
Thanks and best regards