-1

I have a large grid and i need those data exported to excel.i implemented my solution using openxml, however having nested loops fill each row's columns to set cell values is time consuming.

I'm now trying to export it to xml and then export to xlsx to improve performance.i converted the dataset to xml, now i'm stuck with converting to xlsx. is there a way to convert to xlsx without having nested loops to fill each cell value ?

UPDATE : I was able to do it using following library -

Open XML Format SDK 2.0 Sample - Convert XML to Excel File

1 Answers1

0

There is no direct conversion, but your best bet if you have the XML is to deserialise this so you have access to the data via code, then build an Excel document using an Excel Library (e.g.: http://epplus.codeplex.com)

Mark Redman
  • 24,079
  • 20
  • 92
  • 147