Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
When a cell contains text or a string that is larger than the width of the cell, the string overflows if the next cell in the next column is null or empty. When you save your Excel file to HTML, you can control this overflow by specifying the cross type using the HtmlCrossType enumeration. It has the following values:
HtmlCrossType.Default: Displays like MS Excel, depending on the next cell. If the next cell is null, the string will cross; otherwise, it will be truncated.
HtmlCrossType.MSExport: Displays the string as MS Excel does when exporting to HTML.
HtmlCrossType.Cross: Displays an HTML cross string; the performance for creating large HTML files will be more than ten times faster than setting the value to Default or FitToCell.
HtmlCrossType.FitToCell: Displays the string only 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 values. Please download the output HTMLs generated with this code. The sample Excel file contains an image bordered with red color, as shown in this screenshot, which demonstrates the effect of the HtmlCrossType values on the output HTML.

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