Sample source code below will display you how to manage a complex task like import from list 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. It can be applied to import from list with spreadsheet sdk using C#.
Want to save time? You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout Barcode Suite for import from list with spreadsheet sdk below and use it in your application. Simply copy and paste in your C# project or application you and then run your app! Complete and detailed tutorials and documentation 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 provides the free trial version of ByteScout Barcode Suite along with the documentation and 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)
using System.Collections; using System.Diagnostics; using System.IO; namespace Bytescout.Spreadsheet.Demo.Csharp.ImportFromList { class Program { static void Main(string[] args) { const string fileName = "CSharpImportFromList.xls"; // Create a new spreadsheet Spreadsheet spreadsheet = new Spreadsheet(); // Get the data from the 2D array that we want to import IList planets = GetList(); // Import data into spreadheet spreadsheet.ImportFromList(planets); // Save the spreadsheet if (File.Exists(fileName)) File.Delete(fileName); spreadsheet.SaveAs(fileName); // Close spreadsheet spreadsheet.Close(); // Open the spreadsheet Process.Start(fileName); } /// <summary> /// Creates a list of planets /// </summary> /// <returns>List of planets</returns> private static IList GetList() { string[,] planets = new string[9,1]; planets[0,0] = "Mercury"; planets[1,0] = "Venus"; planets[2,0] = "Earth"; planets[3,0] = "Mars"; planets[4,0] = "Jupiter"; planets[5,0] = "Saturn"; planets[6,0] = "Uranus"; planets[7,0] = "Neptune"; planets[8,0] = "Pluto"; return planets; } } }
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
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
Get Your API Key
Explore Web API Docs
Explore Web API Samples
also available as: