I am using your free Spire.XLS
And I'm getting an exception.
An unhandled exception of type 'System.NullReferenceException' occurred in Spire.XLS.dll
Additional information: Object reference not set to an instance of an object.
Here is my code:
Workbook workbook = new Workbook();
//Load an Excel sample document
workbook.LoadFromFile(result);
//Get the first worksheet
Worksheet sheet = workbook.Worksheets[0];
//Create an HTMLOptions instance
Spire.Xls.Core.Spreadsheet.HTMLOptions options = new Spire.Xls.Core.Spreadsheet.HTMLOptions();
//Embed images to HTML
options.ImageEmbedded = true;
sheet.SaveToHtml("myL.html");
Please help me how to resolve this.
Thanks