I have a report where the cells (startRowIndex = 7, endRowIndex = 26, startColumnIndex = 4, endColumnIndex = 6 are merged. In that merged area I am putting a big chunk of text.
I estimated that the number of characters that can fit in would be ~ 1650 so I am trying to keep it close and less than that. Now, still, occasionally the chunk of text gets cut off at the bottom (due to too many new line characters in the ext which increases the space occupied with less characters) so I need the height of the merged area to fit the height of the text in those fringe cases.
I used GetHeightOfValue examples to add to the last row some pixels. If for example GetHeightOfValue() returned 600px and the summed up total height of the rows of the merged area was 484, I added the difference 116 to the last row. However it always seems too much so I end up with huge gaps at the bottom of the merged cells.
Even pages where the chunk of text fits and still has room with no adjustments needed, GetHeightOfValue() says the height of the value is bigger than the height of the merged cell.
Do you have any hypothesis?
.
Thanks,
Mircea