Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
Convert XLS to XML | VB.NET
Module1.vb:
VB
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