Licensing

Evaluation Version Limitation

Evaluation version of Aspose.Slides (without a license specified) provides full product functionality, but (when you save your presentations) it injects an evaluation watermark at the center of each slide as shown in the figure below:

todo:image_alt_text

Applying a License

There are several ways to apply a license, depending on whether you’re working on JasperReports, or JasperServer.

Applying a License for JasperReports

Use a 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("Aspose.Slides.JasperReports.Developer.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());
}

Or, set the exporter parameter in the code.

ASPptExporter exporter = new ASPptExporter (); 
exporter.setParameter(ASExporterParameters.PPT_LICENSE, "Aspose.Slides.JasperReports.Developer.lic");
exporter.exportReport();

Applying a License on JasperServer

Set the exporter parameter in the applicationContext.xml.

<bean id="asExportParametersBean" class="com.aspose.slides.jasperreports.ASExportParametersBean">
    <property name="licenseFile" value="C:/jasperserver-3.0/apache-tomcat/webapps/jasperserver/WEB-INF/Aspose.Slides.JasperReports.Developer.lic"/>
</bean>