
SharpDevelop has a built-in translator between C and VB.NET. This article will show you how to convert HTML to Excel with the help of Spire.XLS. If you cannot find a good converter, you could always compile the c code and use the dissasembler in Reflector to see Visual Basic code. Starts from Spire.XLS V10.4.9, Spire.XLS starts to support saving HTML to Excel in C/VB.NET.

If you want to export the whole Excel file together with images, shapes, textboxes, and charts, into a single HTML page, you can use HtmlType.Mhtml which will export the entire spreadsheet content as a MIME HTML (MHTML) file.Īlternatively, you can export each sheet as an HTML table by using HtmlType.HtmlTable and combine them into a single HTML content, as shown in the next example. With Spire.XLS, we could save Excel to HTML easily.

Workbook.Save("HtmlExport.html", options)Įnd Module Convert multiple Excel sheets to a single HTML pageīy default HtmlSaveOptions.HtmlType is set to HtmlType.Html, which will export the entire spreadsheet content into several files. SelectionType = SelectionType.EntireFile ' Specify cell range which should be exported to HTML. ' Set some ExcelPrintOptions properties for HTML export. SpreadsheetInfo.SetLicense("FREE-LIMITED-KEY")ĭim workbook = ExcelFile.Load("%#HtmlExport.xlsx%") Note, however, that the conversion is often not perfect. Features: C to VB and vice-versa, LINQ tester, Encryption/Decryption, Regular Expression tester, Base64 Encoding/Decoding and Full-text translation.

The converted code then appears in the bottom window. NET is an integrated, powerful, multi-purpose conversion and developer tool. Paste desired code in the top window and click Execute from the toolbar. ' If using Professional version, put your serial key below. In the second drop down list, select whether to go from C to VB.NET or from VB.NET to C.
