ByteScout Barcode Suite - VB.NET - Import from 2d array with spreadsheet sdk - ByteScout

ByteScout Barcode Suite – VB.NET – Import from 2d array with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – VB.NET – Import from 2d array with spreadsheet sdk

How to import from 2d array with spreadsheet sdk in VB.NET using ByteScout Barcode Suite

How to write a robust code in VB.NET to import from 2d array with spreadsheet sdk with this step-by-step tutorial

The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. ByteScout Barcode Suite: 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 import from 2d array with spreadsheet sdk in VB.NET.

The SDK samples given below describe how to quickly make your application do import from 2d array with spreadsheet sdk in VB.NET with the help of ByteScout Barcode Suite. Simply copy and paste in your VB.NET project or application you and then run your app! Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.

You can download free trial version of ByteScout Barcode Suite from our website to see and try many others source code samples for VB.NET.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Module1.vb
      
Imports System.IO Imports System.Diagnostics Imports Bytescout.Spreadsheet Module Module1 Sub Main() Const fileName As String = "VBNetImportFrom2DArray.xls" 'Create a new spreadsheet Dim spreadsheet As Bytescout.Spreadsheet.Spreadsheet = New Bytescout.Spreadsheet.Spreadsheet 'Get the data from the 2D array that we want to import Dim stockPrices(,) As String = Get2DArray() 'Import data into spreadheet spreadsheet.ImportFrom2DArray(stockPrices) 'Save the spreadsheet If (File.Exists(fileName)) Then File.Delete(fileName) End If spreadsheet.SaveAs(fileName) 'Close spreadsheet spreadsheet.Close() 'Open the spreadsheet Process.Start(fileName) End Sub ''' <summary> ''' Creates a 2D array of stock prices ''' </summary> ''' <returns>A 2D array of stock prices</returns> Function Get2DArray() As String(,) Dim stockPrices(10, 2) As String stockPrices(0, 0) = "AAPL" stockPrices(0, 1) = "24,89" stockPrices(1, 0) = "AMZN" stockPrices(1, 1) = "27,95" stockPrices(2, 0) = "DELL" stockPrices(2, 1) = "12,68" stockPrices(3, 0) = "EBAY" stockPrices(3, 1) = "57,27" stockPrices(4, 0) = "GOOG" stockPrices(4, 1) = "28,98" stockPrices(5, 0) = "IBM " stockPrices(5, 1) = "24,00" stockPrices(6, 0) = "INTC" stockPrices(6, 1) = "12,24" stockPrices(7, 0) = "MSFT" stockPrices(7, 1) = "37,85" stockPrices(8, 0) = "SNE " stockPrices(8, 1) = "39,91" stockPrices(9, 0) = "YHOO" stockPrices(9, 1) = "78,72" Return stockPrices End Function End Module

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next