Hey!
For my "ajaxed" VB.NET Website I am using the xElement to create (with LinQ) a xml - response like that:
Public Function xmlLs(ByVal userID As Integer, ByVal date As Date) As XElement
Return New XElement("lsXml", _
From ls In dcBrix.T_LS _
Where ls.LS_USER_ID = userID And ls.LS_DATE = date _
Order By ls.LS_ID Descending _
Select New XElement("ls", _
New XElement("lsNr", ls.LS_NUMBER), _
New XElement("lsDate", ls.LS_DATE), _
New XElement("lsCount", ls.LS_HOURS) _
) _
)
End Function
result:
<?xml version='1.0' encoding='UTF-8' ?>
<lsXml>
<ls>
<lsNr>128907325105351250</lsNr>
<lsDate>15.11.2008</lsDate>
<lsCount>1.50</lsCount>
</ls>
....
</lsXml>
This works great!
Now the problem:
I have to export the xml-date to Excel (xls, csv).
How can I read my own generated xml and then make the dialogbox to download the data as an Excel-spreadsheet?
Thank you very much for any help!