Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When the cell contains text or string but it is larger than the width of the cell, then the string overflows if the next cell in the next column is null or empty. When you save your Excel file into HTML, you can control this overflow by specifying the cross type using the HtmlCrossType enumeration. It has the following values
HtmlCrossType.DEFAULT: Display like MS Excel which depends on the next cell. If the next cell is null, the string will cross or it will be truncated.
HtmlCrossType.MS_EXPORT: Display the string like MS Excel exporting HTML.
HtmlCrossType.CROSS: Display HTML cross string, the performance for creating large HTML files will be more than ten times faster than setting the value to DEFAULT or FIT_TO_CELL.
HtmlCrossType.CROSS_HIDE_RIGHT: Display HTML cross string and hide the right string when the texts overlap.
HtmlCrossType.FIT_TO_CELL: Only displaying the string within the width of the cell.
The following sample code loads the sample Excel file and saves it to HTML format by specifying different HtmlCrossType. Please download the output HTML files generated with this code. The sample Excel file contains the image bordered with red color as shown in this screenshot that shows the effect of the HtmlCrossType values on output HTML.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.