The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. What is ByteScout Data Extraction Suite? It is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can help you to remove rows from existing spreadsheet with spreadsheet sdk in your VB.NET application.
The following code snippet for ByteScout Data Extraction Suite works best when you need to quickly remove rows from existing spreadsheet with spreadsheet sdk in your VB.NET application. 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.
ByteScout Data Extraction Suite free trial version is available on our website. VB.NET and other programming languages are supported.
Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Open Spreadsheet Dim document As New Spreadsheet() document.LoadFromFile("AdvancedReport.xls") ' Get Worksheet Dim worksheet As Worksheet = document.Workbook.Worksheets(0) ' Remove row worksheet.Rows.Delete(5, 5) ' 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