在浏览器中将表导出到LightSwitch应用程序中的xls [英] Export table to xls in LightSwitch application within a browser

查看:68
本文介绍了在浏览器中将表导出到LightSwitch应用程序中的xls的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将表导出到嵌入在IIS上并在浏览器中显示的LightSwitch应用程序中的Excel电子表格(xls)?我注意到,对于示例应用程序,当我将其更改为Web应用程序时,桌面应用程序示例
中的按钮不再可用。

解决方案

< blockquote>

之前我有同样的问题,答案是,没有内置支持,但你可以轻松编写自己的扩展。


最后创建一个自定义域服务,它接受一些导出参数,并返回由EPPlus生成的excell 2007 xml数据,这是一个托管在codeplex中的开源excel库。


但你可以由于受限制的权限,不能像浏览器模式中的内置Excel导出功能那样打开它。你可以做的是打开一个SaveFile对话框。


 




Is it possible to export a table to an excel spreadsheet (xls) within a LightSwitch application that's hosted on IIS, and displayed within a browser? I noticed that with the sample applications, the button that was present in a desktop application sample is no longer available when I change it to a web application.

解决方案

Hi, I had the same question before, the answer is, there is no built-in support, but you can easily write your own extension.

It ended with creating a custom domain service which accept some exporting parameters, and return the excell 2007 xml data, which is generated by EPPlus, which is a open source excel library hosted in codeplex.

But you just can not open it just as the built-in excel export functionality in browser mode because of the restricted permission. What you can do is open a SaveFile Dialog.

 



这篇关于在浏览器中将表导出到LightSwitch应用程序中的xls的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆