ByteScout Barcode Suite - C# - Add background image with spreadsheet sdk - ByteScout

ByteScout Barcode Suite – C# – Add background image with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – C# – Add background image with spreadsheet sdk

How to add background image with spreadsheet sdk in C# with ByteScout Barcode Suite

Learn to code in C# to add background image with spreadsheet sdk with this step-by-step tutorial

Quickly learn how to add background image with spreadsheet sdk in C# with this sample source code. 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. It can add background image with spreadsheet sdk in C#.

Want to quickly learn? This fast application programming interfaces of ByteScout Barcode Suite for C# plus the guidelines and the code below will help you quickly learn how to add background image with spreadsheet sdk. Follow the instructions from scratch to work and copy the C# code. Applying C# application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.

If you want to try other source code samples then the free trial version of ByteScout Barcode Suite is available for download from our website. Just try other source code samples for C#.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Program.cs
      
using System.Diagnostics; using System.Drawing; using Bytescout.Spreadsheet; namespace AddBackgroundImage { class Program { static void Main(string[] args) { // Create new spreadsheet (or open existing) Spreadsheet doc = new Spreadsheet(); doc.RegistrationName = "demo"; doc.RegistrationKey = "demo"; // Add worksheet Worksheet 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(); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode Suite Home Page

Explore ByteScout Barcode Suite Documentation

Explore Samples

Sign Up for ByteScout Barcode Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next