Fix Word Interop Changing Custom Style from Calibri 11 to 12
Question details
The user needs to investigate and resolve an issue where a custom Word style designed for Calibri 11 displays as Calibri 12 when applied to content controls via C# Word Interop.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Formatting content controls inside a Word document programmatically using C# Word Interop.
- Observed behavior
- A custom style configured to use Calibri 11 unexpectedly displays the text in Calibri 12 when applied through the Interop code.
Ensure you have access to the original Word document or template (.dotx) being used by your application, and identify the exact names of the custom styles being applied.
Check Style Inheritance and Base Style Settings
Verify if your custom style is inheriting properties from a base style (like 'Normal') whose font size was changed to 12.
Word styles often inherit properties from a parent style. If a custom style is based on another style, any un-overridden settings (like font size) will dynamically update if the parent style changes. When Interop interacts with the document, it recalculates these inheritance chains.
Open your Word template or document. Go to the 'Home' tab and click the small launcher arrow in the bottom-right corner of the Styles group, or press Alt+Ctrl+Shift+S.
Locate your custom style in the list, hover over it, click the drop-down arrow, and select 'Modify'.
Check the 'Style based on' field. Note the parent style (e.g., Normal).
Ensure the font size in your custom style is explicitly set to 11. If the parent style is set to 12, explicitly redefining the font size in the custom style will sever that specific inheritance link and prevent Interop from reverting it.

Clear Direct Formatting Overrides in Interop Code
Ensure your C# code isn't unintentionally applying direct paragraph or character formatting that overrides the style.
Try WPS Office for Stable and Reliable Document Formatting
If dealing with unpredictable Word Interop style inheritance is causing frustration, consider switching to WPS Office. It provides a highly compatible, lightweight, and easy-to-use alternative for managing complex document formatting without unexpected style changes.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package.
- 2. Install the Application: Run the installer and follow the simple on-screen instructions to set up the suite on your computer.
- 3. Open Your Documents: Launch WPS Writer to open, edit, and manage your .docx files with perfect formatting preservation.

Frequently Asked Questions
Why does C# Word Interop change font styles unexpectedly?
C# Word Interop relies on Microsoft Word's underlying application logic. If a document has conflicting style inheritance, automatic style updates enabled, or direct manual formatting applied to content controls, Interop commands will trigger these built-in rules, often resulting in unexpected font size changes.
How do I prevent my custom style from automatically updating?
Open the Styles pane in Word, right-click your custom style, and select 'Modify'. At the bottom of the dialog box, ensure the 'Automatically update' checkbox is cleared. This prevents Word (and Interop) from redefining the style based on direct formatting changes.
Why does the font size change specifically inside a content control?
Content controls often inherit the underlying paragraph formatting where they are inserted. If the default paragraph font is Calibri 12, the text inside the control may default to it unless your custom style explicitly overrides both the character and paragraph level settings.
How can I check style inheritance in Word?
You can check style inheritance by opening the Styles pane (Alt+Ctrl+Shift+S), clicking 'Modify' on your chosen style, and looking at the 'Style based on' dropdown. This shows the parent style from which properties like font size are inherited.




