Quickly learn how to convert xls to xlsx with spreadsheet sdk in VB.NET with this sample source code. Want to convert xls to xlsx with spreadsheet sdk in your VB.NET app? ByteScout Barcode Suite is designed for it. ByteScout Barcode Suite is the set that includes three different SDK products to generate barcodes, read barcodes and read and write spreadsheets: Barcode SDK, Barcode Reader SDK and Spreadsheet SDK.
The SDK samples given below describe how to quickly make your application do convert xls to xlsx with spreadsheet sdk in VB.NET with the help of ByteScout Barcode Suite. This VB.NET sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Enjoy writing a code with ready-to-use sample VB.NET codes.
You can download free trial version of ByteScout Barcode Suite from our website with this and other source code samples for VB.NET.
Imports Bytescout.Spreadsheet Imports System.Diagnostics Imports System.IO Module Module1 Sub Main() ' Open existing XLS file Dim spreadsheet As New Spreadsheet() spreadsheet.LoadFromFile("Input.xls") ' delete output file if exists already if File.Exists("Output.xlsx") Then File.Delete("Output.xlsx") End If ' Save it as XLSX spreadsheet.SaveAs("Output.xlsx") ' open output document in default viewer Process.Start("Output.xlsx") End Sub End Module