We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Section.Body.InsertXHTML Position

Thread ID:





89530 Aug 27,2009 01:35 PM UTC Aug 28,2009 01:28 PM UTC ASP.NET Web Forms (Classic) 2
Tags: DocIO
Cody Inman
Asked On August 27, 2009 01:35 PM UTC

I am building a word report in which i insert paragraphs, images, and html.

It all works, but when i use the method Section.Body.InsertXHTML it inserts the html at the end of the document, regardless of when it is added. So all the paragraphs and images get placed in paragraphs before the html.

I need a way to have the html placed in between the paragraphs.

Vijayakumar S [Syncfusion]
Replied On August 28, 2009 07:25 AM UTC

Hi Cody,

Thank you for posting your query.

We are afraid that we were not able to reproduce the mentioned issue. You can add html contents with the help of WParagraph.AppendHtml() method also. We have prepared a sample to illustrate the usage of both WSection.Body.InsertXHTML() and WParagraph.AppendHtml(), please have a look at the sample in the below link. If the issue with InsertXHTML() method still exists, could you please provide us the code snippet or sample application to reproduce the issue, so that we can sort out the cause of the issue and provide you a solution.


Please let us know if you have any further questions.


Cody Inman
Replied On August 28, 2009 01:28 PM UTC

I resolved this issue by using the InsertXHTML method for a table cell.

The table itself is placed in the correct position, so I just insert the xhtml into the table cell.

Thanks for your help.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon