ByteScout Barcode Suite - VB.NET - Read date from cell with spreadsheet sdk - ByteScout

ByteScout Barcode Suite – VB.NET – Read date from cell with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – VB.NET – Read date from cell with spreadsheet sdk

How to read date from cell with spreadsheet sdk in VB.NET and ByteScout Barcode Suite

How to write a robust code in VB.NET to read date from cell with spreadsheet sdk with this step-by-step tutorial

On this page you will learn from code samples for programming in VB.NET.Writing of the code to read date from cell with spreadsheet sdk in VB.NET can be executed by programmers of any level using ByteScout Barcode Suite. 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 read date from cell with spreadsheet sdk in your VB.NET application.

The SDK samples given below describe how to quickly make your application do read date from cell with spreadsheet sdk in VB.NET with the help of ByteScout Barcode Suite. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. 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.

ByteScout Barcode Suite free trial version is available on our website. VB.NET and other programming languages are supported.

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 Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("Sample.xls") ' Get worksheet by name Dim worksheet As Worksheet = document.Workbook.Worksheets.ByName("Sheet1") ' Check dates For i As Integer = 0 To 3 ' Set current cell Dim currentCell As Cell = worksheet.Cell(i, 0) If currentCell.ValueDataTypeByNumberFormatString = Constants.NumberFormatType.DateTime Then ' read date time Dim datet As DateTime = currentCell.ValueAsDateTime() ' Write to console Console.WriteLine("{0}", datet.ToShortDateString()) Else ' Write message Console.WriteLine("cell does not contain date time value") End If Next ' Close document document.Close() ' Write message Console.Write("Press any key to continue...") ' Wait user input Console.ReadKey() End Sub 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