创建 MS Excel 工作表

发布于 2024-10-09 00:51:06 字数 121 浏览 0 评论 0原文

如何创建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海风掠过北极光 2024-10-16 00:51:06

我以前必须这样做,这非常耗时,但您可以将其写入客户端的 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

不交电费瞎发啥光 2024-10-16 00:51:06

使用npoi在服务器中临时生成excel,待用户下载后删除。

use npoi to generate the excel in server temporarily , until it is downloaded by the user , then delete it .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文