Aspose.Slides 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.
Download the license to your computer and copy it to the appropriate folder (for example your app’s folder or JasperReports\lib).
There are several ways available to activate license:
1. JasperReports. Direct setLicense method call similar to Aspose.Slides for Java.
import com.aspose.slides.jasperreports.License;
... ...
try {
//Create a stream object containing the license file
FileInputStream fstream=new FileInputStream("C:\\Aspose.Slides.JR.lic");
//Instantiate the License class
License license=new License();
//Set the license through the stream object
license.setLicense(fstream);
} catch(Exception ex) {
System.out.println(ex.toString());
}
2. JasperReports. By setting exporter parameter in the code.
JRPptExporter exporter = new JRPptExporter();
exporter.setParameter(JRPptExporterParameter.PPT_LICENSE,
“Aspose.Slides.JasperReports.Developer.lic");
exporter.exportReport();
3. JasperServer. By setting exporter parameter in the applicationContext.xml.
<bean id="pptExportParameters" class="com.aspose.slides.jasperreports.PptExportParametersBean">
<property name="licenseFile" value="C:/jasperserver-3.0/apache-tomcat/webapps/jasperserver/WEB-INF/Aspose.Slides.JasperReports.Developer.lic"/>
</bean>
Aspose.Slides for JasperReports injects a watermark when working in the evaluation mode.
When a valid license is activated, there will be no evaluation watermark.