Every ByteScout tool includes simple example VB.NET source codes that you can get here or in the folder with installed ByteScout product. Want to read merged cells with spreadsheet sdk in your VB.NET app? ByteScout Barcode Suite is designed for it. ByteScout Barcode Suite is the set that includes three different SDK products to generate barcodes, read barcodes and read and write spreadsheets: Barcode SDK, Barcode Reader SDK and Spreadsheet SDK.
The SDK samples given below describe how to quickly make your application do read merged cells 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! Enjoy writing a code with ready-to-use sample codes in VB.NET.
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.
Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("Input.xls") ' Get worksheet by name Dim worksheet As Worksheet = document.Workbook.Worksheets("Sheet1") ' Read merged cell Dim cell As Cell = worksheet.Cell("C12").MergedWithCell ' Read cell value Console.WriteLine(cell.Value) ' Close document document.Close() End Sub End Module