如何部署表格控件Spread for ASP.NET到服务器
1、部署Spread程序需要发布以下DLL到文件夹在服务器上部署下列程序集: FarPoint.Web.Spread.dll Far霸烹钟爷Point.CalcEngine.dll FarPoint.Excel.dll FarPoint.PDF.dll FarPoint.Web.Chart.dll (如果用到图表控件) FarPoint.Web.Spread.Extender.dll (如果用到扩展单元格类型) System.Web.Extensions.dll (如果你使用了 FarPoint.Web.Spread.Extender.dll) AjaxControlToolkit.dll (如果你使用了 FarPoint.Web.Spread.Extender.dll)
2、添加Spread客户端资源文件夹:把 fp_client 文件夹(默认安装在 Program Files\ComponentOne\Spread Studio 8概嗤先眚\ASP.NET\v8.40.20143.0\fp_client文件夹下)和它的子文件夹部署在服务器的 wwwroot 目录下,如果你想把它放在其他文件夹下,可以在 IIS 中建立对应该文件夹的虚拟路径。
3、fp_client 文件夹也可以放在 web 程序目录下,但需要在 web_config 文件中,添加如下代码:注意: Spread for ASP.NET 在客户端 HTML 页面上创建 Spread 控件的同时也加载 HTC 文件去支持 Spread 在客户端的脚本功能。
4、权限需求如果在“中”信任等级的的网站上部署 Spread 控件,你需要在机器的 config 和 web_mediumtrust.config 文件中添加 SerializationFormatter 和 Reflection 许可。 SecurityPermission 需要添加如下代码:
5、以上即为部署Spread for ASP.NET表格控件到服务器方法。