Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web service Excel conversion

I have ASP.NET web service, which is creating file in XML table format.

I need to convert this file into Excel 2003 format.

What can I use instead of Microsoft.Interop library?

UPDATE: I also need to copy format from the original file.

like image 209
Metaller Avatar asked Jan 25 '26 13:01

Metaller


2 Answers

you can read the data from xml using linq and then insert it on the run using linq to excel with the dll provided in the post above.

also take a look at this article i hope it helps

http://blogs.msdn.com/b/bethmassi/archive/2007/10/30/quickly-import-and-export-excel-data-with-linq-to-xml.aspx

like image 187
COLD TOLD Avatar answered Jan 28 '26 04:01

COLD TOLD


Have you tried OpenXML? Here is an example

With Office 2007

Look here for Cell Formatting

like image 35
Orhan Cinar Avatar answered Jan 28 '26 04:01

Orhan Cinar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!