I am currently using Apache POI to transform a spreadsheet to HTML.
Though I am able to construct a decent HTML with commonly used API methods of POI. I am restrained in achieving a format for my requirement.
It is possible for a cell value to overflow to next cells without merging neighboring cells when current cell value is lengthier. This is the image for understanding.
Though I can get column width through this method - Sheet and can understand that text in column 'R' (from above image) is not wrapped, I don't have a method to know the number of cells this value is over-flowing.
Why I need this? I require my HTML to look as similar as spreadsheet.
While converting to HTML file, I wish to find 'colspan'
attribute for <td>
respective to the length of cell value.
Could you please enlighten me to correct API method or a workaround?
Thanks in advance!