Read xml spreadsheet (spreadsheetml format) with spreadsheet sdk is simple to apply in VB.NET if you use these source codes below. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK and you can use it to read xml spreadsheet (spreadsheetml format) with spreadsheet sdk with VB.NET.
Want to quickly learn? This fast application programming interfaces of ByteScout Data Extraction Suite for VB.NET plus the guidelines and the code below will help you quickly learn how to read xml spreadsheet (spreadsheetml format) with spreadsheet sdk. 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! Further improvement of the code will make it more robust.
ByteScout provides the free trial version of ByteScout Data Extraction Suite along with the documentation and source code samples.
On-demand (REST Web API) version:
Web API (on-demand version)
On-premise offline SDK for Windows:
60 Day Free Trial (on-premise)
Imports Bytescout.Spreadsheet
Module Program
Sub Main()
Try
' Convert SpreadhseetML (xml spreadsheet) to XLSX format
Using spreadsheet As New Spreadsheet
spreadsheet.RegistrationName = "demo"
spreadsheet.RegistrationKey = "demo"
' Load input file
spreadsheet.LoadFromFile("sample.xml")
' Generate XLSX format
spreadsheet.SaveAsXLSX("sample.xlsx")
End Using
' Read spreadsheet and display data to console
Using spreadsheet As New Spreadsheet
spreadsheet.RegistrationName = "demo"
spreadsheet.RegistrationKey = "demo"
' Load input file
spreadsheet.LoadFromFile("sample.xlsx")
' Reference Worksheet
Dim Worksheet As Worksheet = spreadsheet.Worksheet(0)
Console.WriteLine("=====================================================")
Console.WriteLine("================ Spreadsheet data ===================")
Console.WriteLine("=====================================================")
' Read And output cells to console.
For row = Worksheet.UsedRangeRowMin To Worksheet.UsedRangeRowMax
For column = Worksheet.UsedRangeColumnMin To Worksheet.UsedRangeColumnMax
Console.Write("{0}" + vbTab, Worksheet.Cell(row, column).ValueAsString)
Next
Console.WriteLine()
Next
End Using
Catch ex As Exception
Console.WriteLine(("ERROR:" + ex.Message))
End Try
Console.WriteLine("Press any key to exit...")
Console.ReadLine()
End Sub
End Module
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page
Explore ByteScout Data Extraction Suite Documentation
Explore Samples
Sign Up for ByteScout Data Extraction Suite Online Training
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: