ByteScout Spreadsheet SDK - C# - Export To Jagged Array - ByteScout

ByteScout Spreadsheet SDK – C# – Export To Jagged Array

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Export To Jagged Array

How to export to jagged array in C# with ByteScout Spreadsheet SDK

This code in C# shows how to export to jagged array with this how to tutorial

Every ByteScout tool contains example C# source codes that you can find here or in the folder with installed ByteScout product. ByteScout Spreadsheet SDK is the SDK that can write and read, modify and calculate Excel and CSV spreadsheets. Most popular formulas are supported. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can export to jagged array in C#.

This rich sample source code in C# for ByteScout Spreadsheet SDK includes the number of functions and options you should do calling the API to export to jagged array. In order to implement the functionality, you should copy and paste this code for C# below into your code editor with your app, compile and run your application. Use of ByteScout Spreadsheet SDK in C# is also explained in the documentation included along with the product.

ByteScout Spreadsheet SDK free trial version is available on our website. C# and other programming languages are supported.

Try ByteScout Spreadsheet SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System; namespace Bytescout.Spreadsheet.Demo.Csharp.ExportToJaggedArray { class Program { static void Main(string[] args) { const string inputFile = @"StockPricesSpreadsheet.xls"; // Open and load spreadsheet Spreadsheet spreadsheet = new Spreadsheet(); spreadsheet.LoadFromFile(inputFile); // Get the data from the spreadsheet string[][] stockPrices = spreadsheet.ExportToJaggedArray(); // Close spreadsheet spreadsheet.Close(); // Display data in jagged array for (int i = 0; i < stockPrices.GetLength(0); i++) { Console.Write(stockPrices[i][0] + " "); Console.Write(stockPrices[i][1] + " "); Console.WriteLine(); } // Pause Console.ReadLine(); } } }

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

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Spreadsheet SDK page

Explore ByteScout Spreadsheet SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next