Hi,
I have an issue handling RichText StructuredDocumentTags.
I created a Word document containing some StructuredDocumentTags using Aspose.Words.
I attached the created document (aspose1.docx).
When I read the document with Aspose.Words and loop the StructuredDocumentTags the type of the StructuredDocumentTags I created as rich text are still properly richtext.
However, I open the generated aspose1.docx in Word 2010, and I change the richtext fields with some text with formatting. The result is saved to aspose1word.docx.
When I try to parse this with Aspose.Words the type of the SDT is changed to none.
The code I use (_objAsposeDoc has my word doc loaded):
For Each objNode As Node In _objAsposeDoc.GetChildNodes(NodeType.StructuredDocumentTag, True)
Dim objSDT As Aspose.Words.Markup.StructuredDocumentTag = CType(objNode, Aspose.Words.Markup.StructuredDocumentTag)
’ objSDT.SdtType is none instead of RichText for the richttext fields changed in MSWord
Next
Can this be solved? As a workaround I just assume type None is a Richtext SDT, but I would prefer to use correct values.
Regards,
Robert Wielink