ByteScout Spreadsheet SDK - C# - Change Document Properties - ByteScout

ByteScout Spreadsheet SDK – C# – Change Document Properties

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

How to change document properties in C# and ByteScout Spreadsheet SDK

The tutorial below will demonstrate how to change document properties in C#

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 library (SDK) that is capable of writing, reading, modifying and calculating Excel and CSV spreadsheets. Most popular formulas can be calculated and reculculated with Excel installed. You may import or export data to and from CSV, XML, JSON as well as to and from databases, arrays. It can be used to change document properties using C#.

You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout Spreadsheet SDK for change document properties below and use it in your application. In your C# project or application you may simply copy & paste the code and then run your app! You can use these C# sample examples in one or many applications.

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; using System.Collections.Generic; using System.Text; using System.IO; using System.Diagnostics; using Bytescout.Spreadsheet; namespace Book_properties_write { class Program { static void Main(string[] args) { // Create new Spreadsheet Spreadsheet document = new Spreadsheet(); // Add new worksheet Worksheet worksheet = document.Workbook.Worksheets.Add("Sheet1"); // Set some properties document.Workbook.Properties.ApplicationName = "Bytescout Spreadsheet SDK"; document.Workbook.Properties.Author = "Bytescout"; document.Workbook.Properties.Comments = "Some comments"; document.Workbook.Properties.Subject = "Some subject"; // delete output file if exists already if (File.Exists("Output.xls")){ File.Delete("Output.xls"); } document.SaveAs("Output.xls"); // open generated XLS document in default program Process.Start("Output.xls"); } } }

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