Aspose.Cells for JasperReports

Licensing

 

Aspose.Cells for JasperReports is available for free, time unlimited evaluation from the download page. The evaluation and licensed versions of the product is the same download.

When you are happy with the evaluation version, you can purchase a license. Make sure you understand and agree to the subscription terms.

The license will be available for download from the order page after the order was paid. The license is a clear text, digitally signed XML file. The license contains information such as the client name, the purchased product and the type of the license. Do not modify the content of the license file, as it will invalidate the license.

There are two ways available to activate a license:

 

Call setLicense

This method is applicable for use with JasperReports.

Download the license to your computer and copy it to the appropriate folder (for example your application’s folder or JasperReports\lib).

Add the following code to your project.

 

   import com.aspose.cells.jasperreports.*;

 

   // Create a stream object containing the license file

   FileInputStream fstream = new FileInputStream("C:\\Aspose.Cells.JasperReports.lic");

 

   // Set the license through the stream object

   License license = new License();

   license.setLicense(fstream);

 

 

Set the licenseFile Exporter Parameter in applicationContext.xml

This method is applicable for use with JasperServer.

Download the license to your computer and copy it to the <InstallDir>\apache-tomcat\webapps\jasperserver\WEB-INF folder, where <InstallDir> stands for the JasperServer installation directory.

Locate the <InstallDir>\apache-tomcat\webapps\jasperserver\WEB-INF\applicationContext.xml file and add the following lines:

 

<bean id="excelACExportParameters" class="com.aspose.cells.jasperreports.ACXlsExportParametersBean">

    <property name="licenseFile" value="C:/jasperserver-3.0/apache-tomcat/webapps/jasperserver/WEB-INF/Aspose.Cells.JasperReports.lic"/>

</bean>

 

 

Verify the License Works

Export any report to XLS format and check if the report contains an evaluation message. If there is no evaluation message, then the license is working properly.

Aspose.Cells for JasperReports injects an evaluation worksheet when working in the evaluation mode.

 

When a valid license is activated, there will be no evaluation worksheet.