I am using both aspose cells and html in same code base and we have the total product license. Isn’t it enough to set once as I mentioned in my code earlier for both product?
@PostConstruct
public void init(){
com.aspose.cells.License license = new com.aspose.cells.License();
license.setLicense("/lic/Aspose.Total.Product.Family.lic");
}
@sunithaprabhu,
You also need to instantiate License class in Aspose.HTML library and set the license, see the updated sample code segment for your reference:
e.g
Sample code:
@PostConstruct
public void init(){
com.aspose.cells.License lic1 = new com.aspose.cells.License();
lic1.setLicense("/lic/Aspose.Total.Product.Family.lic");
........
com.aspose.html.License lic2 = new com.aspose.html.License();
lic2.setLicense("/lic/Aspose.Total.Product.Family.lic");
}
So there is no single code to set license for all product family?
@sunithaprabhu,
yes, your understanding is correct.