This page explains the steps and algorithm of implementing font style in cell with spreadsheet sdk and how to make it work in your application. ByteScout Data Extraction Suite was made to help with font style in cell with spreadsheet sdk in VB.NET. ByteScout Data Extraction Suite 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.
VB.NET code snippet like this for ByteScout Data Extraction Suite works best when you need to quickly implement font style in cell with spreadsheet sdk in your VB.NET application. 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! Check these VB.NET sample code examples to see if they acknowledge to your needs and requirements for the project.
ByteScout Data Extraction Suite is available as a free trial. You may get it from our website along with all other source code samples for VB.NET applications.
Imports Bytescout.Spreadsheet Imports System.IO Module Module1 Sub Main() ' Create new Spreadsheet Dim document As New Spreadsheet() ' Add new worksheet Dim worksheet = document.Workbook.Worksheets.Add("Sheet1") ' Apply rich text formatting Worksheet.Cell("A1").Value = "Arial Italic Bold, Size=23" worksheet.Cell("A1").Font = New System.Drawing.Font("Arial", 23, System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Italic) ' 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