Groups | Blog | Home
all groups > dotnet xml > december 2005 >

dotnet xml : From_excell_to_XMÖ



Lamis
12/7/2005 1:48:02 AM
Hi,

I have never worked with xml files (in .net C#).. How can I read an excell
file to XML file??? I do not want to read all the columns.

Thank your for your help.
--
DC
12/12/2005 8:16:23 PM
one way to do this: use Excel as a ADO.NET provider, and save the dataset to
an XML format.
here's an example that queries Excel. You will have to add the one line of
code to save the DataSet to an XML stream:

http://cheeso.members.winisp.net/srcview.aspx?dir=data&file=excel-adonet.cs

-Dino

--
-Dino
D i n o . C h i e s a AT M i c r o s o f t . c o m



[quoted text, click to view]

AddThis Social Bookmark Button