Suppose you use the evaluation version of ActiveReportsJS and run a front-end application that uses ActiveReportsJS on localhost. In that case, a watermark with the evaluation message appears on a report preview and in the exported files.
If you would like to deploy an application into a test server, you can contact us.sales@grapecity.com and request the evaluation distribution key. Once you receive the key, follow the guidelines in the Reactjs, Angular, and Vue applications section.
The standalone designer application is available for 30 days. However, you can extend the evaluation period by sending the request to us.sales@grapecity.com.
Once you have purchased the license and received the Order Confirmation email, you can use the following methods to license the standalone designer application and your front-end application.
You can use the same Designer License Key for multiple installations of ActiveReportsJS on different machines.
When you deploy your application in the developing, staging, or production server, you generate the distribution key and integrate it into the application's code.
The distribution key is a sequence of characters that determines one or more hostnames on which your application is available for end-users.
To generate the distribution key:
Now you should insert the generated key in your application's source code. ActiveReportsJS runs on the client-side, so the code that injects the license should run on the client-side. Here are a few recipes for the most popular front-end frameworks.
Add the following code to the entry point of your application. By default, the entry point is:
import { Core } from "@grapecity/activereports";
Core.setLicenseKey("DISTRIBUTION KEY GOES HERE");
Pure JavaScript applicationAdd the reference to the ar-js-core.js script to the HTML page
<script type="text/javascript" src="https://cdn.grapecity.com/activereportsjs/3.latest/dist/ar-js-core.js"></script>
Add the following code so that it runs after the ar-js-core.js script is loaded
GC.ActiveReports.Core.setLicenseKey("DISTRIBUTION KEY GOES HERE");