ByteScout Spreadsheet SDK – C# – Read Document Properties

  • Home
  • /
  • Articles
  • /
  • ByteScout Spreadsheet SDK – C# – Read Document Properties

ByteScout Spreadsheet SDK – C# – Read Document Properties

Program.cs

using System;
using System.Collections.Generic;
using System.Text;

using Bytescout.Spreadsheet;

namespace Book_properties_read
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create new Spreadsheet
            Spreadsheet document = new Spreadsheet();
	document.LoadFromFile("Input.xls");

            // Get some properties
            Console.WriteLine("Author: " + document.Workbook.Properties.Author);
            Console.WriteLine("Comments: " + document.Workbook.Properties.Comments);
            Console.WriteLine("Subject: " + document.Workbook.Properties.Subject);
        }
    }
}


  Click here to get your Free Trial version of the SDK

prev
next