ByteScout Data Extraction Suite - C# - Read xml spreadsheet (spreadsheetml format) with spreadsheet sdk - ByteScout

ByteScout Data Extraction Suite – C# – Read xml spreadsheet (spreadsheetml format) with spreadsheet sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – C# – Read xml spreadsheet (spreadsheetml format) with spreadsheet sdk

How to read xml spreadsheet (spreadsheetml format) with spreadsheet sdk in C# and ByteScout Data Extraction Suite

Continuous learning is a crucial part of computer science and this tutorial shows how to read xml spreadsheet (spreadsheetml format) with spreadsheet sdk in C#

ByteScout simple and easy to understand tutorials are planned to describe the code for both C# beginners and advanced programmers. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK. It can be applied to read xml spreadsheet (spreadsheetml format) 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 Data Extraction Suite for read xml spreadsheet (spreadsheetml format) with spreadsheet sdk below and use it in your application. This C# sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Check C# sample code samples to see if they respond to your needs and requirements for the project.

Trial version of ByteScout Data Extraction Suite is available for free. Source code samples are included to help you with your C# app.

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 Bytescout.Spreadsheet; using System; namespace ReadSpreadsheetMLFormat { class Program { static void Main(string[] args) { try { //Convert SpreadhseetML (xml spreadsheet) to XLSX format using (var spreadsheet = new Spreadsheet()) { spreadsheet.RegistrationName = "demo"; spreadsheet.RegistrationKey = "demo"; // Load input file spreadsheet.LoadFromFile("sample.xml"); // Generate XLSX format spreadsheet.SaveAsXLSX("sample.xlsx"); } // Read spreadsheet and display data to console using (var spreadsheet = new Spreadsheet()) { spreadsheet.RegistrationName = "demo"; spreadsheet.RegistrationKey = "demo"; // Load input file spreadsheet.LoadFromFile("sample.xlsx"); //Reference Worksheet Worksheet worksheet = spreadsheet.Worksheets[0]; Console.WriteLine("====================================================="); Console.WriteLine("================ Spreadsheet data ==================="); Console.WriteLine("====================================================="); // Read and output cells to console. for (int row = worksheet.UsedRangeRowMin; row <= worksheet.UsedRangeRowMax; row++) { for (int column = worksheet.UsedRangeColumnMin; column <= worksheet.UsedRangeColumnMax; column++) { Console.Write("{0}\t", worksheet.Cell(row, column).ValueAsString); } Console.WriteLine(); } } } catch (Exception ex) { Console.WriteLine(ex.Message); } Console.WriteLine("Press any key to exit..."); Console.ReadLine(); } } }

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