Installing license for Aspose.cells

After testing aspose.cells (for Java) and using a temporary license, I bought a license, downloaded a new license file an put it in my working directory instead ou the old license file (directory where are the aspose dll and jar File).

When I creta an Excel Workbook, I still get a sheet (sheet2) with

'Evaluation only. Created with Aspose.Cells for Java.
It is strictly prohibited from using it in the production of any software.
Any violation of this provision shall require a mandatory purchase of pay license as well as expose the user to other legal recourse for collection and punitive damages.'

just as I had with the temporary license (and a bit different than before without any license file)

And if I try

license.SetLicense("Aspose.Cells.lic")

after creating a license object i,n my program I get an error message( SetLicense being not known).

Thank you in advance for your help.


I


This message was posted using Page2Forum from Licensing - Aspose.Cells for .NET and Java

Hi,

Thank you for considering Aspose.

As you are placing the License file in the same folder as Aspose.Cells.jar, you can get the license file into the streams and specify the stream object.
E.g.

com.aspose.cells.License license = new com.aspose.cells.License();

FileInputStream inputStream = null;
inputStream = new FileInputStream("e:\\Files\\Aspose.Cells.lic");
license.setLicense(inputStream );

Thank You & Best Regards,

Thank you for your quick answer (I use Jython and do not know so much of Java).

It works OK now.

Best regards.