The coding instructions are formulated to help you to try-out the features without the requirement to write your own code. 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. It can add background image with spreadsheet sdk in VB.NET.
The following code snippet for ByteScout Data Extraction Suite works best when you need to quickly add background image with spreadsheet sdk in your VB.NET application. Just copy and paste the code into your VB.NET application’s code and follow the instructions. Further improvement of the code will make it more robust.
If you want to try other source code samples then the free trial version of ByteScout Data Extraction Suite is available for download from our website. Just try other source code samples for VB.NET.
Imports System.Diagnostics Imports System.Drawing Imports System.IO Imports Bytescout.Spreadsheet Class Program Friend Shared Sub Main(args As String()) ' Create new spreadsheet (or open existing) Dim doc As New Spreadsheet() doc.RegistrationName = "demo" doc.RegistrationKey = "demo" ' Add worksheet Dim worksheet As Worksheet = doc.Worksheets.Add() ' Put background image on the worksheet worksheet.BackgroundPicture = Image.FromFile("image1.jpg") ' Save document doc.SaveAs("output.xls") ' Close spreadsheet doc.Close() ' Open generated XLS document in default application Process.Start("output.xls") doc.Dispose() End Sub End Class