Hi ,
I want to loop through the word document and check what type of element it is and below is my code .
foreach(var childElement in wordProcessingDocument.MainDocumentPart.Document.Body.Elements().ToList())
{
if (childElement is DocumentFormat.OpenXml.Wordprocessing.SdtBlock )
{
//do something
}
}
But it never comes to the loop even childElement type is SdtBlock
Any suggestion ?
Thanks