Alternatively, it would be better you use the overloaded version of the method, check the description of the method, i.e…,
Workbook.Save(string fileName, bool isWhole, string title)
/// Export the workbook to Html file.
/// Text file name.
/// Indicates whether export the whole workbook or only the active sheet.
/// The title of the html page.
Here is my example code which works fine.
Aspose.Cells.License license = new Aspose.Cells.License();
workbook = new Workbook();
workbook has three sheets in it.
//If you want to render
only first worksheet as a standalone html file.
workbook.Worksheets.ActiveSheetIndex = 0;
workbook.Save(“e:\test\mysheetfile.html”, false, “MyTitle”);