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.
Unfortunately, activation email could not send to your email. Please try again.

Delete a Table in Word document

Thread ID:





131181 Jun 27,2017 02:18 AM Jul 3,2017 12:46 AM Windows Forms 3
Tags: DocIO
Alicia Freeman
Asked On June 27, 2017 02:18 AM

Is it possible to delete a Table (WTable) in a Word document using DocIO?

Warm regards,

Vijay Ramachandran [Syncfusion]
Replied On June 28, 2017 03:08 AM

Hi Alicia,

Thank you for using Syncfusion products.

Yes, you can remove a table (WTable) from Word document using DocIO. Please find the code snippet to remove tables.
            // If input Word document have multiple section
            //Then you could iterate each section and remove the tables.
            WTextBody body = document.Section[0].Body;
for (int index = 0; index < body.ChildEntities.Count; index++)
if (body.ChildEntities[index] is WTable)

Also, we have prepared demo sample to remove tables from existing Word document. Please find the sample from here and let us know if it helps.

Vijay R

Alicia Freeman
Replied On June 30, 2017 02:13 PM

Thank you :-)

Really appreciate if you could update this in the DocIO documentation.

Warm regards,


Vijay Ramachandran [Syncfusion]
Replied On July 3, 2017 12:46 AM

Hi Alice,

Thank you for your feedback.

Yes, we have already considered to include the details to remove table from a Word document in our UG documentation.

Vijay R


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.

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.