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. Image for the cookie policy date

Removing the first paragraph in a document


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.


1 Reply

SK Sathish K Syncfusion Team 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

Live Chat Icon For mobile
Up arrow icon