Licensing

Evaluation License Limitations

The evaluation version of Aspose.Slides has the same features as the full version, but adds a watermark to the spreadsheet to let readers know that the evaluation version was used. To get rid of the watermark, buy and apply a license.

In evaluation mode, Aspose.Slides injects a watermark.

todo:image_alt_text

When a license is applied, there is no watermark

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.

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());

  }



  • Or, set the exporter parameter in the code.

Java




  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>