Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
This is a very common scenario that we need to export only print area i.e. selected range of cells instead of the entire sheet to HTML. This feature is already available for PDF rendering, however, now you can perform this task for HTML as well. First, set the print area in the page setup object of the worksheet. Later use HtmlSaveOptions.ExportPrintAreaOnly property to export selected range only.
Following sample code loads a workbook and then exports print area to the HTML. The sample file for testing this feature can be downloaded from the following link:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.