Free Support Forum - aspose.com

With latest version of apsose.word- table generated appear with cross (X) marks

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.

Thanks

Narayan

Hi,

Thank you for considering Aspose.

This issue was reported some time ago. Please see here:

http://www.aspose.com/community/Forums/28150/ShowPost.aspx

The link that you have specified

http://www.aspose.com/community/Forums/28150/ShowPost.aspx gives following error. Please advice.

-----------------

Access Denied: Post Permission Denied

Either this forum does not exist or you are not allowed to post.

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

Does it help?

It works now with your solution.

Thanks