ByteScout Data Extraction Suite - VB.NET - Number format in cells with spreadsheet sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Data Extraction Suite – VB.NET – Number format in cells with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – VB.NET – Number format in cells with spreadsheet sdk

number format in cells with spreadsheet sdk in VB.NET with ByteScout Data Extraction Suite

Learn to code number format in cells with spreadsheet sdk in VB.NET: How-To tutorial

This page explains the steps and algorithm of implementing number format in cells with spreadsheet sdk and how to make it work in your application. ByteScout Data Extraction Suite was made to help with number format in cells with spreadsheet sdk in VB.NET. 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.

This rich and prolific sample source code in VB.NET for ByteScout Data Extraction Suite contains various functions and options you should do calling the API to implement number format in cells with spreadsheet sdk. Just copy and paste this VB.NET sample code to your VB.NET application’s code editor, add a reference to ByteScout Data Extraction Suite (if you haven’t added yet) and you are ready to go! VB.NET application implementation mostly involves various stages of the software development so even if the functionality works please check it with your data and the production environment.

If you want to try other samples for VB.NET then free trial version of ByteScout Data Extraction Suite is available on our website.

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 Imports System.Diagnostics Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() ' Get worksheet by name Dim worksheet As Worksheet = document.Workbook.Worksheets.Add("Sample") ' Set header worksheet.Cell(0, 0).Value = "Number" worksheet.Cell(0, 1).Value = "Format" ' Set variables Dim plan As Double = 3000 Dim result As Double = 3100 ' Fill cells For i As Integer = 1 To 5 worksheet.Cell(i, 0).Value = result / plan Next ' Set cells format worksheet.Cell(1, 0).NumberFormatString = "0.00" worksheet.Cell(2, 0).NumberFormatString = "0.00%" worksheet.Cell(3, 0).NumberFormatString = "mm:ss" worksheet.Cell(4, 0).NumberFormatString = "hh:mm:ss" worksheet.Cell(5, 0).NumberFormatString = "##0,0E+0" ' Set captions worksheet.Cell(1, 1).Value = "0.00" worksheet.Cell(2, 1).Value = "0.00%" worksheet.Cell(3, 1).Value = "mm:ss" worksheet.Cell(4, 1).Value = "hh:mm:ss" worksheet.Cell(5, 1).Value = "##0,0E+0" ' remove output file if already exists If File.Exists("Output.xls") Then File.Delete("Output.xls") End If ' Save document document.SaveAs("Output.xls") ' Close Spreadsheet document.Close() ' open in default spreadsheets viewer/editor Process.Start("Output.xls") End Sub End Module

ON-PREMISE OFFLINE SDK

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

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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next