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)
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)