admin 管理员组

文章数量: 1184232

在上篇文章《 》在本文中,我们已经介绍了部分产stimulsoft控件的激活方式,接下来继续向您介绍后续部分~

Blazor WebAssembly (Wasm) 的报告和仪表板工具

需要订阅:

  • 用于激活报告组件;
  • 用于激活分析组件;
  • ,它作为激活报告和数据分析组件以及 PDF 表单生成组件的综合解决方案。

在页面初始化事件中激活许可证。

Index.razor

@using Stimulsoft.Report
@using Stimulsoft.Report.Blazor
@using Stimulsoft.Report.Web
<StiBlazorViewer />
@code
{
protected override void OnInitialized()
{
//Activation using license code
Stimulsoft.Base.StiLicense.Key = "Your activation code...";
base.OnInitialized();
}
}
Angular 的报告工具

需要订阅:

  • 用于激活报告组件;
  • ,它作为激活报告和数据分析组件以及 PDF 表单生成组件的综合解决方案。

在控制器构造函数中激活许可证。

ViewerController.cs

//Activation using license code
public class ViewerController : Controller
{
public ViewerController()
{
Stimulsoft.Base.StiLicense.Key = "Your activation code...";
}
}
//Activation using license file
public class ViewerController : Controller
{
public ViewerController(IWebHostEnvironment hostEnvironment)
{
var path = Path.Combine(hostEnvironment.ContentRootPath, "Content\\license.key");
Stimulsoft.Base.StiLicense.LoadFromFile(path);
}
}
JavaScript (JS) 的报告和仪表板工具

需要订阅:

  • 激活报告组件;
  • 用于激活分析组件;
  • ,它作为激活报告和数据分析组件以及 PDF 表单生成组件的综合解决方案。

在使用查看器和设计器创建、加载和构建报告之前激活许可证。

index.html

function Start() {
//Activation using license code
Stimulsoft.Base.StiLicense.key = "Your activation code...";
//Activation using license file
Stimulsoft.Base.StiLicense.loadFromFile("license.key");
}
PHP 的报告和仪表板工具(包括 Laravel)

需要订阅:

  • 用于激活报告组件;
  • 用于激活分析组件;
  • ,它作为激活报告和数据分析组件以及 PDF 表单生成组件的综合解决方案。

在事件处理程序中激活许可证。

index.php

//Activation using license code
<?php
$handler = new \Stimulsoft\StiHandler();
$handler->license->setKey('Your activation code...');
$handler->renderHtml();
?>
//Activation using license file
<?php
$handler = new \Stimulsoft\StiHandler();
$handler->license->setFile('license.key');
$handler->renderHtml();
?>

项目页面上存在使用 JavaScript 代码下载许可证密钥的选项。在创建、加载和呈现报表之前以及使用查看器和设计器之前,有必要添加此代码。

index.html

function Start() {
//Activation using license code
Stimulsoft.Base.StiLicense.key = "Your activation code...";
//Activation using license file
Stimulsoft.Base.StiLicense.loadFromFile("license.key");
}
Java 报告工具

需要订阅:

  • 用于激活报告组件;
  • ,它作为激活报告和数据分析组件以及 PDF 表单生成组件的综合解决方案。

在使用查看器和设计器之前,使用字符串许可证密钥或使用许可证密钥文件(例如 *.jsp 文件中的许可证密钥文件)激活许可证。

Forms for Web

需要订阅:

  • 激活表单创建组件;
  • ,它作为激活报告和数据分析组件以及 PDF 表单生成组件的综合解决方案。

在控制器的静态构造函数中激活许可证。

HomeController.cs

//Activation using license code
public class HomeController : Controller
{
static HomeController()
{
Stimulsoft.Base.StiLicense.Key = "Your activation code...";
}
}
//Activation using license file
public class HomeController : Controller
{
public HomeController(IHostingEnvironment hostEnvironment)
{
var path = Path.Combine(hostEnvironment.ContentRootPath, "Content\\license.key");
Stimulsoft.Base.StiLicense.LoadFromFile(path);
}
}

本文标签: 它作为激 需要订阅 系统