ByteScout Spreadsheet SDK - C# - CSV To XLS - ByteScout

ByteScout Spreadsheet SDK – C# – CSV To XLS

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – CSV To XLS

ByteScout Spreadsheet SDK – C# – CSV To XLS

Program.cs

using System;
using System.Collections.Generic;
using System.Text;
using Bytescout.Spreadsheet;
using System.IO;
using System.Diagnostics;

namespace HelloWorld
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create new Spreadsheet
            Spreadsheet document = new Spreadsheet();

	    // load csv file
	    document.LoadFromFile("input.csv");

            // Save document
            document.SaveAs("Output.xls");

            // Close Spreadsheet
            document.Close();

            // open generated XLS document in default program
            Process.Start("Output.xls");
        }
    }
}


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next