ByteScout tutorials describe the stuff for programmers who use VB.NET. ByteScout Data Extraction Suite was made to help with validate data in cell and mark wrong with color 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.
Want to speed up the application development? Then this VB.NET, code samples for VB.NET, developers help to speed up the application development and writing a code when using ByteScout Data Extraction Suite. To use validate data in cell and mark wrong with color with spreadsheet sdk in your VB.NET project or application just copy & paste the code and then run your app! This basic programming language sample code for VB.NET will do the whole work for you in implementing validate data in cell and mark wrong with color with spreadsheet sdk in your app.
Trial version can be downloaded from our website for free. It contains this and other 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("Data.xls") ' Get worksheet by name Dim worksheet As Worksheet = document.Workbook.Worksheets.ByName("Sample") ' Spellcheck words For i As Integer = 0 To 4 ' Set current cell Dim currentCell As Cell = worksheet.Cell(0, i) ' Spellcheck current cell If currentCell.Value = "Simpsan" Then ' Set fill pattern currentCell.FillPattern = Bytescout.Spreadsheet.Constants.PatternStyle.Solid ' Markup wrong word by red color currentCell.FillPatternForeColor = System.Drawing.Color.Red End If Next ' 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