Source code documentation samples provide quick and easy way to add a required functionality into your application. ByteScout Spreadsheet SDK 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 import from JSON in VB.NET.
This code snippet below for ByteScout Spreadsheet SDK works best when you need to quickly import from JSON in your VB.NET application. Follow the instructions from the scratch to work and copy the VB.NET code. Implementing VB.NET application typically includes multiple stages of the software development so even if the functionality works please test it with your data and the production environment.
ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.
Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() Using spreadsheet As New Spreadsheet ' Load JSON string from file Dim jsonString As String = File.ReadAllText("sample.json") ' Import JSON spreadsheet.ImportFromJSON(jsonString) ' Save spreadsheet spreadsheet.SaveAsXLS("result.xls") ' Open the result file in default associated application Process.Start("result.xls") End Using End Sub End Module