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) { body.ChildEntities.RemoveAt(index); index--; } } |
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.
Regards,
Vijay R