创建 MS Excel 工作表
如何创建 MS Excel 工作表并从 Moonlight/Silverlight 应用程序下载它?问候 Lennie
基本上我想在 Siverlight 客户端中运行报告并允许用户下载 MS Excel 报告。
How can I create 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我以前必须这样做,这非常耗时,但您可以将其写入客户端的 XML 文件。
一个好的起点是创建一个新的 Excel 工作表,将其保存为 XML 文件,然后您可以计算出需要更改哪些位,然后找出将正确信息写入 XML 文件的方法。
尽管正如我所说,这将需要相当长的时间!
编辑-
刚刚找到这个供你看看-
http://www.rshelby.com/post/creating-excel -worksheet-from-silverlight.aspx
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
使用npoi在服务器中临时生成excel,待用户下载后删除。
use npoi to generate the excel in server temporarily , until it is downloaded by the user , then delete it .