Free Support Forum -

Issues handling RichText StructuredDocumentTag


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

Can this be solved? As a workaround I just assume type None is a Richtext SDT, but I would prefer to use correct values.

Robert Wielink

Hi Robert,

Thanks for your query. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-6902 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-6902) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.