Convert Aspose workbook into Microsoft Excel work book object using Aspose.Cells for .NET in C#

Hi

Is it possible to convert Aspose workbook to Microsoft workbook object?

In Microsoft Workbook there is a option to specify the file format as HTML to save.

Microsoft.Office.Interop.Excel._Workbook msbook;

msbook.SaveAs(localpath, Microsoft.Office.Interop.Excel.XlFileFormat.xlHtml, missing, missing, missing, missing, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange, missing, missing, missing, missing, missing);

Is it possible to convert or is there any other workaround to generate report in HTML format?

I want to display images also in my report.

Thanks

Ashok

Hi,

Well, you can use FileFormatType.Html enumeration value to save a workbook to html format. And, yes, the images also get rendered in the output html report.

e.g

workbook.Save(@"c:\files\MyWorkbook.html", FileFormatType.Html);

For further reference about FileFormatType enumeration, please check:

https://docs.aspose.com/display/cellsnet/Saving+an+Excel+File

Thank you.