Convert XLS Excel document into XML format using Bytescout Spreadsheet SDK - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

Convert XLS Excel document into XML format using Bytescout Spreadsheet SDK

  • Home
  • /
  • Articles
  • /
  • Convert XLS Excel document into XML format using Bytescout Spreadsheet SDK

How to convert Excel document into XML format using Bytescout Spreadsheet SDK

This source code sample converts existing Excel document report into XML document using Bytescout Spreadsheet SDK

Download example source code: bytescoutxls_converting_excel_to_xml.zip (5 KB)

source excel document to convert into xml

XML generated by Bytescout Spreadsheet SDK from source Excel document

using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;
using Bytescout.Spreadsheet;
namespace SaveAsXML
{
class Program
{
static void Main(string[] args)
{
Spreadsheet document = new Spreadsheet(“SimpleReport.xls”);
document.Workbook.Worksheets[0].SaveAsXML(“SimpleReport.xml”);
document.Close();
}
}
}

Download example source code: bytescoutxls_converting_excel_to_xml.zip (5 KB)

Tutorials:

prev
next