Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
The following sample code creates a workbook and fills its worksheet with some values and then saves it in HTML format after setting the HtmlSaveOptions.ExportGridLines to true.
The following screenshot shows the output HTML generated with this sample code. As you can see, it also displays gridlines in output HTML.

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