public void InvestigateGlossaryDocumentPart() { using (WordprocessingDocument wrdTemplate = WordprocessingDocument.Open(pathtemplatedoc + TEMPLATE_NAME, false)) { Console.WriteLine("Count of Glossary Document Parts ==> {0}", wrdTemplate.GetPartsCountOfType <GlossaryDocumentPart>()); Console.WriteLine("Count of Glossary Document Parts ==> {0}", wrdTemplate.MainDocumentPart.GetPartsCountOfType <GlossaryDocumentPart>()); } }