ByteScout Barcode Suite - C# - Line styles in cells with spreadsheet sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Barcode Suite – C# – Line styles in cells with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Suite – C# – Line styles in cells with spreadsheet sdk

line styles in cells with spreadsheet sdk in C# using ByteScout Barcode Suite

line styles in cells with spreadsheet sdk in C#

These sample source codes given below will show you how to handle a complex task, for example, line styles in cells with spreadsheet sdk in C#. ByteScout Barcode Suite was made to help with line styles in cells with spreadsheet sdk in 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.

Want to speed up the application development? Then this C#, code samples for C#, developers help to speed up the application development and writing a code when using ByteScout Barcode Suite. If you want to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. Updated and detailed documentation and tutorials are available along with installed ByteScout Barcode Suite if you’d like to learn more about the topic and the details of the API.

ByteScout Barcode Suite free trial version is available for download from our website. Free trial also includes programming tutorials along with source code samples.

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 System.Diagnostics; using Bytescout.Spreadsheet; using Bytescout.Spreadsheet.Constants; using System.IO; namespace HelloWorld { class Program { static void Main(string[] args) { // Create new Spreadsheet Spreadsheet document = new Spreadsheet(); // Get worksheet by name Worksheet worksheet = document.Workbook.Worksheets.Add(); // Number of cell in the first column int cellRow = 0; // Apply all line styles foreach (LineStyle lineStyle in Enum.GetValues(typeof(LineStyle))) { // Set current cell Cell currentCell = worksheet.Cell(cellRow, 0); // Set border styles currentCell.RightBorderStyle =lineStyle; currentCell.LeftBorderStyle = lineStyle; currentCell.TopBorderStyle = lineStyle; currentCell.BottomBorderStyle = lineStyle; // Print style name currentCell.Value = lineStyle.ToString(); // Choose next row cellRow += 2; } // delete output file if exists already if (File.Exists("LineTypes.xls")){ File.Delete("LineTypes.xls"); } // Save document document.SaveAs("LineTypes.xls"); // Close document document.Close(); // open generated XLS document in default program Process.Start("LineTypes.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