tags:

views:

33

answers:

2

Hello All,

I would like to ask what should be faster: reading excel file from .Net or reading xml file which contains the same data. The same is for writing.

Thank you very much in advance.

mayap.

A: 

The smaller the file, the faster it will be read.

However, in .NET, it is easier to use XML with the classes of the BCL (Base Class Library) as there is no excel support built in.

You can use Linq2Xml to query the XML structure and work with it.

Oded
A: 

There is no simple answer for that question. There are too many variables and you should try it yourself with the options available to you and with a representative data set (xml file, xls / xlsx workbook, ???).

SpreadsheetGear for .NET provides a fast API for reading (and creating / modifying / rendering / writing / etc...) Excel workbooks from .NET. You can see live ASP.NET samples here and download the free trial here.

Disclaimer: I own SpreadsheetGear LLC

Joe Erickson