ByteScout Data Extraction Suite - C# - Change data in existing spreadsheet with spreadsheet sdk - ByteScout

ByteScout Data Extraction Suite – C# – Change data in existing spreadsheet with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – C# – Change data in existing spreadsheet with spreadsheet sdk

How to change data in existing spreadsheet with spreadsheet sdk in C# and ByteScout Data Extraction Suite

Learn to change data in existing spreadsheet with spreadsheet sdk in C#

Every ByteScout tool includes simple example C# source codes that you can get here or in the folder with installed ByteScout product. ByteScout Data Extraction Suite can change data in existing spreadsheet with spreadsheet sdk. It can be applied from C#. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

The following code snippet for ByteScout Data Extraction Suite works best when you need to quickly change data in existing spreadsheet with spreadsheet sdk in your C# application. Simply copy and paste in your C# project or application you and then run your app! Use of ByteScout Data Extraction Suite in C# is also described in the documentation included along with the product.

ByteScout provides the free trial version of ByteScout Data Extraction 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)

Program.cs
      
using System; using System.Collections.Generic; using System.Text; using Bytescout.Spreadsheet; using System.Diagnostics; using System.IO; namespace Changing_data_in_existing_XLS { class Program { static void Main(string[] args) { // Open Spreadsheet Spreadsheet document = new Spreadsheet(); document.LoadFromFile("AdvancedReport.xls"); // Get Worksheet Worksheet worksheet = document.Workbook.Worksheets[0]; // Set cell value worksheet.Cell(1, 1).Value = "Homer Jay Simpson 2"; // delete output file if exists already if (File.Exists("AdvancedReport_Modified.xls")){ File.Delete("AdvancedReport_Modified.xls"); } // Save document document.SaveAs("AdvancedReport_Modified.xls"); // Close Spreadsheet document.Close(); // open output document in default viewer Process.Start("AdvancedReport_Modified.xls"); } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next