Learn how to convert XLS to XML in VB.NET with this source code sample. What is ByteScout Spreadsheet SDK? It is the library (SDK) that is capable of writing, reading, modifying and calculating Excel and CSV spreadsheets. Most popular formulas can be calculated and reculculated with Excel installed. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can help you to convert XLS to XML in your VB.NET application.
VB.NET code samples for VB.NET developers help to speed up coding of your application when using ByteScout Spreadsheet SDK. In your VB.NET project or application you may simply copy & paste the code and then run your app! Test VB.NET sample code examples whether they respond your needs and requirements for the project.
ByteScout Spreadsheet SDK free trial version is available on our website. VB.NET and other programming languages are supported.
Imports Bytescout.Spreadsheet Imports System.IO Imports System.Diagnostics Module Module1 Sub Main() Dim document As New Spreadsheet() document.LoadFromFile("SimpleReport.xls") ' remove output file if already exists If File.Exists("Output.xml") Then File.Delete("Output.xml") End If ' Save document document.Workbook.Worksheets(0).SaveAsXML("Output.xml") ' Close Spreadsheet document.Close() ' open in default spreadsheets viewer/editor Process.Start("Output.xml") document.Close() End Sub End Module