SpreadJS V10 授权激活

发布时间:2017/01/04 00:01 发布者:dexteryao

返回博客中心

SpreadJS V10 采用了全新的授权激活方式。V10 SpreadJS 分为试用版和正式版。
SpreadJS V10 js类库试用版无需激活可在本地环境使用,正版版授权后可发布至绑定域名使用。
SpreadJS V10 设计器试用版享受30天试用,正式版激活后无使用期限限制。(试用版升级正式版,需要卸载后重新安装)
Spread.Sheets 和Spread.Views授权方式一致,统一以Spread.Sheets说明。
一. SpreadJS 设计器激活
    1. 卸载试用版(如有),安装正式版设计器
    2. 点击激活按钮


    3. 输入LicenseKey(授权码),重启设计器

二. Spread.Sheets部署授权

Spread.Sheets在未授权情况下只能在本地环境(localhost、file://、127.0.0.1等)运行,如需部署需要添加授权。
1. 引用正式版Spread.Sheets js

<script src="[Your_Scripts_Path]/gc.spread.sheets.all.xxxx.min.js" type="text/javascript"></script>

 

2. 添加授权

  1. GC.Spread.Sheets.LicenseKey = “Your Key”

 

   您可以直接在声明spread.Sheets前加入此代码,也可将此代码放入license.js文件中引用,方便项目管理

  1. <script src="[Your_Scripts_Path]/licensen.js" type="text/javascript"></script>

 

3. 使用spread

<script type="text/javascript"> 
    // 添加授权 
    GC.Spread.Sheets.LicenseKey = “your key”; 
    // Your Code 
    window.onload = function(){ 
        var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3}); 
        var sheet = spread.getActiveSheet();                              
    } 
</script>

 

三. Server端ExcelIO组件
Server端ExcelIO必须使用LicenseKey才能使用,只需要在Importer 和Exporter实例化前设置LicenseKey即可

  1.                 GrapeCity.Spread.Sheets.License.LicenseKey = "Your key";
  2.                 Importer importer = new Importer();

 

 

更多资源

如果您对SpreadJS产品感兴趣,请到官方网站下载试用:/developer/spreadjs

产品咨询电话:400-657-6008

Spread.Sheets中文学习指南:http://demo.grapecity.com.cn/SpreadJS/TutorialSample/#/samples

Spread.Sheets在线英文产品文档:http://sphelp.grapecity.com/webhelp/SpreadSheets10/webframe.html


关于葡萄城

赋能开发者!葡萄城是专业的集开发工具、商业智能解决方案、低代码开发平台于一身的软件和服务提供商,为超过 75% 的全球财富 500 强企业提供服务。葡萄城专注控件软件领域30年,希望通过模块化的开发控件、灵活的低代码应用开发平台等一系列开发工具、解决方案和服务,帮助开发者快速响应复杂多变的业务需求,最大程度地发挥开发者的才智和潜能,让开发者的 IT 人生更从容更美好。

了解详情,请访问葡萄城官网