Create MS Excel Sheet
How can I c开发者_如何转开发reate an MS Excel sheet and download it from a Moonlight/Silverlight app? Regards Lennie
Basically I want to run a report in the Siverlight client and allow the user to download the MS Excel report.
I had to do this previously, its pretty time consuming but you can write it to a XML file on the client side.
A good place to start is to create a new excel sheet save it as an XML file and then you can work out which bits need to change and then work out a way to write the correct information to the XML file.
Although as I said it will take a fair bit of time!!
Edit-
Just found this for you to take a look at- http://www.rshelby.com/post/creating-excel-worksheet-from-silverlight.aspx
use npoi to generate the excel in server temporarily , until it is downloaded by the user , then delete it .
精彩评论