Write XLS documents from C# using Bytescout Spreadsheet SDK for .NET

  • Home
  • /
  • Articles
  • /
  • Write XLS documents from C# using Bytescout Spreadsheet SDK for .NET

Writing XLS document from C# application using Bytescout Spreadsheet SDK for .NET

This example contains source code example for Visual C# demonstrating how to write a simple XLS document from C# using Bytescout Spreadsheet lib

Download example source code: bytescoutxls_c_sharp.zip (4 KB)

XLS document generated from C# example using Bytescout Spreadsheet SDK

// Create new Spreadsheet
Spreadsheet document = new Spreadsheet();

// Add new worksheet
Worksheet worksheet = document.Workbook.Worksheets.Add(“HelloWorld”);

// Set cell value
worksheet.Cell(0, 0).Value = “Hello, World!”;

// Save document
document.SaveAs(“HelloWorld.xls”);

Download example source code: bytescoutxls_c_sharp.zip (4 KB)

prev
next