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

Removing the first paragraph in a document

Thread ID:





115850 Feb 11,2014 05:38 PM UTC Feb 12,2014 11:52 AM UTC ASP.NET MVC (Classic) 1
Tags: DocIO
James Whittred
Asked On February 11, 2014 05:38 PM UTC


I need to create a document where the first line in the document is a table. I cannot see a way to remove the first paragraph in the document so I end up with a extra blank line at the start of the document.

I tried to add the table and then go back tot he first paragraph to remove it but there does not appear to be a method to enable this.

Any suggestions would be appreciated.


Sathish K [Syncfusion]
Replied On February 12, 2014 11:52 AM UTC

Hi James,


Thank you for your interest in Syncfusion products.


We have prepared a sample to illustrate how to remove the paragraph preserved in the first line of the document. Please do find the attached sample. You can also avoid this paragraph preservation by defining a new section with the code “IWSection section = document.AddSection()” instead of using document.EnsureMinimal() method.


Please let us know if you have any other questions.




Attachment: GenerateWord_204e09c4.zip


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