I am trying to insert html in content control. The problem is if the html contains paragraph/table then the result is not displayed inside content control
<p>This is a test</p> <p> </p> <p> </p> <p> </p> <p>How is evrything</p> <p> </p>
Note : We are trying to import data from UI to word document. In UI we have rich text editor where user can press enter in between lines .And also user can copy anything and paste in the rich text editor it could be a table but while importing that data into word using aspose we are not getting the desired output.
How we can achieve this?
newsdt = new StructuredDocumentTag(e.Document, SdtType.RichText , MarkupLevel.Inline); Run r = new Run(document); r.Text = ""; newsdt.AppendChild(r); mBuilder.MoveTo(newsdt.FirstChild); mBuilder.InsertHtml(result);
This works only with simple html not with paragraph/table.