I am generating MS-Word document using aspose.word. With the previous version (using old license), the document was generating properly. However, with the latest version all the tables comes with cross lines in the cells. Attached is the image of a section of the document generated. Please advice.
Sorry I missed that the post is marked as private. Okay, here’s the solution from there:
The crosses inside the table cells are diagonal borders. It seems like you set table borders somewhere in your code.
If you iterate over all borders in CellFormat.Borders, it will set all borders including diagonals. We added a new approach that sets all borders except diagonals without iterating. Remove the loop and use the following technique:
Dim borders As Borders = builder.CellFormat.Borders
borders.LineStyle = LineStyle.Single
borders.LineWidth = 1
borders.Color = System.Drawing.Color.Black