I start with a table with 2 rows and 3 columns with borders. I think it is a 2 pt solid perimeter border with a 1pt solid inner grid border.
I use aspose.words to remove the last row using tblObject.LastRow.Remove().
The resulting table has the header row, but there is no bottom border at all.
Any idea what is causing this and if there is a work-around?
I am expecting a header row with the 2pt solid border all the way around. Much like if you delete a row in Word itself, the resulting table still has border formatting.
Edit:
Upon further testing, the table I see this issue with is damaged itself and I can make this happen in Word too (without ASPOSE touching the template file). Other tables behave as I expect in the same document. I have not seen this before because the main code removes the entire table if there is no data rather than the test code that was leaving only the header.
Thanks,
Andrew Bay
Hi Andrew,
Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:
- Your input Word document.
- Please attach the output Word file that shows the undesired behavior.
- Please attach the expected output Word file.
- Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.
This is a non-issue for ASPOSE. The result of manually removing the row in Word resulted in the same output.
Hi Andrew,
Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.