ByteScout Barcode Suite - C# - Create worksheets with spreadsheet sdk - ByteScout

ByteScout Barcode Suite – C# – Create worksheets with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – C# – Create worksheets with spreadsheet sdk

How to create worksheets with spreadsheet sdk in C# with ByteScout Barcode Suite

If you want to learn more then this tutorial will show how to create worksheets with spreadsheet sdk in C#

These sample source codes on this page below are displaying how to create worksheets with spreadsheet sdk in C#. ByteScout Barcode Suite can create worksheets with spreadsheet sdk. It can be applied from C#. 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.

The following code snippet for ByteScout Barcode Suite works best when you need to quickly create worksheets with spreadsheet sdk in your C# application. Follow the instructions from scratch to work and copy the C# code. Enjoy writing a code with ready-to-use sample codes in C#.

All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.

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; using System.Collections.Generic; using System.Text; using Bytescout.Spreadsheet; using System.IO; using System.Diagnostics; namespace Worksheets { class Program { static void Main(string[] args) { // Create new Spreadsheet Spreadsheet document = new Spreadsheet(); // Add worksheets Worksheet worksheet1 = document.Workbook.Worksheets.Add("Demo worksheet 1"); Worksheet worksheet2 = document.Workbook.Worksheets.Add("Demo worksheet 2"); // Get worksheet by name Worksheet worksheetByName = document.Workbook.Worksheets.ByName("Demo worksheet 2"); // Set cell values worksheet1.Cell(0, 0).Value = "This is Demo worksheet 1"; worksheetByName.Cell(0, 0).Value = "This is Demo worksheet 2"; // delete output file if exists already if (File.Exists("Worksheets.xls")){ File.Delete("Worksheets.xls"); } // Save document document.SaveAs("Worksheets.xls"); // delete output file if exists already if (File.Exists("Output.xls")){ File.Delete("Output.xls"); } // open generated XLS document in default program Process.Start("Worksheets.xls"); } } }

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