ByteScout Spreadsheet SDK - C# - Create XLSX - ByteScout

ByteScout Spreadsheet SDK – C# – Create XLSX

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Create XLSX

How to create XLSX in C# with ByteScout Spreadsheet SDK

This tutorial will show how to create XLSX in C#

The coding tutorials are designed to help you test the features without need to write your own code. ByteScout Spreadsheet SDK is the SDK to create, read, modify and calculate spreadsheets. Formula calculations are supported, import and export to and from JSON, CSV, XML, databases, arrays. It can create XLSX in C#.

Fast application programming interfaces of ByteScout Spreadsheet SDK for C# plus the instruction and the code below will help you quickly learn how to create XLSX. Just copy and paste the code into your C# application’s code and follow the instruction. Enjoy writing a code with ready-to-use sample C# codes.

ByteScout free trial version is available for download from our website. It includes all these programming tutorials along with source code samples.

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)

using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using Bytescout.Spreadsheet; using System.IO; namespace CSharp { class Program { static void Main(string[] args) { // 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!"; if (File.Exists("Output.xlsx")) { File.Delete("Output.xlsx"); } // Save document document.SaveAs("Output.xlsx"); // Close Spreadsheet document.Close(); // open generated XLS document in default program Process.Start("Output.xlsx"); } } }

Try ByteScout Spreadsheet SDK today:  60 Day Free Trial (on-premise) or  Web API (on-demand version)



Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK Home Page

Explore ByteScout Spreadsheet SDK Documentation

Get ByteScout Spreadsheet SDK Free Training


Get Your Free API Key

Explore Web API Documentation