Problems related to Licence

Hi Earlier I have downloaded the trial version and was using it from last 15 days.

Now I have got the licence file .

I have kept the licence file in the bin folder and the code for setting the licence

Aspose.Cells.License license = new Aspose.Cells.License();

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

But still I am seeing the evalution messgae in the Grid web sheets.

Could you please guide us on what needs to be done on this.

Hi,

Well, looking your code it seems that you are only setting license for Aspose.Cells component/library, so you will always get evaluation watermark worksheet in the GridWeb control consequently.
You need to explicitly set the license for Aspose.Cells.GridWeb control too to work with the GridWeb. e.g

//Instantiate an instance of license and set the license file
through its path


Aspose.Cells.GridWeb.License license = new
Aspose.Cells.GridWeb.
License();



license.SetLicense(Aspose.Cells.lic);



Also it is better that you should put the licensing code in the Application_Start or Session_Start events in global.asax,

For reference, please see the document:

http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/licensing.html



Thank you.