Click here to Skip to main content
15,886,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to load styles from .dotm file to word and display it in navigation menu using word add-ins Ribbon in MS-Word ?

I can load the styles but I want to show it in navigation menu appear in the left of the active word file

the code to load the Styles is :

C#
private void AttachTemplatestyle(Microsoft.Office.Interop.Word.Document document, string templateFilePath)
{
    object oTemplate = (object)templateFilePath;
    document.set_AttachedTemplate(ref oTemplate);
    document.UpdateStyles();
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900