Hi,
When we try to insert html to a Paragraph inside a StructuredDocumentTag we get a NullReferenceException.
We want to insert html inside a StructuredDocumentTag.
Here is our code:
var doc = new Aspose.Words.Document();
var builder = new Aspose.Words.DocumentBuilder(doc);
var structuredDocumentTag = new StructuredDocumentTag(doc, SdtType.RichText, MarkupLevel.Block);
var paragraphContainer = new Paragraph(doc);
structuredDocumentTag.AppendChild(paragraphContainer);
builder.MoveTo(paragraphContainer);
builder.InsertHtml(@"");
Can you please help us with it? (are we doing something wrong? there is a workaround?)
Thanks!