Free Support Forum - aspose.com

Width of text

Is there any way to check how wide the text that starts in a cell is if it flows past the end of the cell?
We need to be able to check this in order to calculate how many cells we need render to not truncate the text.

e.g. If we render range A1:B36 of the attached sheet we only get the text that fits in those cells.

Hi,


Well, I think you may use Cell.getStringValue().length() to get the length/size of the text in the cell. And, if a cell’s string value’s length is 0, then the cell is empty.

Thank you.