We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to find TOC using StructuredDocumentTag

Hi,


I need to find MS word generated TOC using StructuredDocumentTag. I have used SdtType.DocPartObj for checking the same, is that a right solution ? Below is the code i have used.

NodeCollection sdtCollection = doc.GetChildNodes(NodeType.StructuredDocumentTag, true);

foreach (StructuredDocumentTag sdt in sdtCollection)
{
if (sdt.SdtType == SdtType.DocPartObj)
{
// Do somtheing …
}
}

What are the objects that represents StructuredDocumentTag.SdtType = SdtType.DocPartObj ?

Hi Jeethu,


Thanks for your inquiry.
Jeethu:
I need to find MS word generated TOC using StructuredDocumentTag. I have used SdtType.DocPartObj for checking the same, is that a right solution ? Below is the code i have used.
Please attach your Word document here for testing. We will investigate the issue on our end and provide you more information.

Jeethu:
What are the objects that represents StructuredDocumentTag.SdtType = SdtType.DocPartObj ?
We are in coordination with product team to get answer pertaining to your query. Soon you will be updated with the required information.

Best regards,