The sample source code below will teach you how to convert xls to csv with spreadsheet sdk in VB.NET. What is ByteScout Barcode Suite? It is the bundle that privides 3 SDK products to generate barcodes (Barcode SDK), read barcodes (Barcode Reaer SDK) and read and write spreadsheets (Spreadsheet SDK). It can help you to convert xls to csv with spreadsheet sdk in your VB.NET application.
The SDK samples given below describe how to quickly make your application do convert xls to csv with spreadsheet sdk in VB.NET with the help of ByteScout Barcode Suite. Follow the instructions from scratch to work and copy the VB.NET code. Complete and detailed tutorials and documentation are available along with installed ByteScout Barcode Suite if you’d like to learn more about the topic and the details of the API.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
Imports Bytescout.Spreadsheet Imports System.IO Imports System.Diagnostics Module Module1 Sub Main() ' Open Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("SimpleReport.xls") ' remove output file if already exists If File.Exists("SimpleReport.csv") Then File.Delete("SimpleReport.csv") End If document.Workbook.Worksheets(0).SaveAsCSV("SimpleReport.csv") document.Close() ' open output document in default viewer Process.Start("SimpleReport.csv") End Sub End Module