We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Use aspose to delete a row in table

Hi,

Can I delete a existing row in table using Aspose.word? How to work on it if it is possible?

Regards,
Ken Wan

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Of course you can remove specific row from the table using Aspose.Words. Please see the following code:

// Open document.

Document doc = new Document(@"Test068\in.doc");

// Delete the row from the table.

doc.FirstSection.Body.Tables[0].Rows[1].Remove();

// Save output document.

doc.Save(@"Test068\out.doc");

Best regards,