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

Free Support Forum - aspose.com

Border width overlaps text

Hi support,

Please note that if you set for a cell border width (the top one for example) a big value, like 20, then the border shall be drawn under the text inside the cell.

I think that the border should push the text and the other cell borders.

Regards,
Milan

Hello <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />Milan,

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

Sorry for replying you late.

I have tested the issue and have noticed that if we set the border width to some large value, than its drawn over the text in the cell. The issue has been communicated to the development team, and soon you will be updated with the status of correction.

We apologize for your inconvenience.

Hi milan,

In your post, you said “the border should push the text and the other cell borders”, but in fact the border cannot do that automatically. I think you can get your effect through the method: Cell.getPadding(). For example, if you set the Cell top border width to 20, you can using the following code to “push the text”:

cell.getBorder().setBorderSide(BorderSide.Bottom);

cell.getBorder().getBottom().setLineWidth(20);

cell.getPadding().setBottom(20);

I hope that the above will provide some help. Thank you for using our product.