Remove Top Bottom Cell Borders from Some Table Rows in Word Document using C# .NET | Set Border Line Style to None

Hi there,

I just want to remove borders around one of the cells in a table.

I can do it on the MS Word by selecting the cell and then go to Table properties then modifying borders and shading properties.

I have attached before and after iamges for your reference.

Before.PNG (2.3 KB)
after.PNG (1.3 KB)

The before image shows with borders and after image shows without the bottom border.

Can you please provide me proper directions to achieve this using Aspose’s APIs?

Regards,
Ranga

@ranga.fernando,

We first need to determine whether the Table borders are applied via a Table Style or at Table, Row or Cell levels? Can you please ZIP and attach the following resources here for testing?

  • Your simplified input Word document
  • Your expected DOCX document showing the desired output. You can create this document by using MS Word.

As soon as you get these pieces of information ready, we will start further investigation into your scenario and provide you code to achieve the same expected output by using Aspose.Words API.