Static library .lib

I would like to know if you can provide me a static library (.lib) along with the dll you have given. I cannot put the dll out in the shared environment because of lic issues, so if I have a .lib, I can bundle it into a exe and use aspose.

@fedex167227,

Thanks for your query.

Please note we only provide dynamic APIs in the form of Dlls along with their XMLs (e.g Aspose.Cells.Dll, Aspose.Cells.GridWeb.Dll and Aspose.Cells.GridDesktop.Dll) that run on the server to manage Excel spreadsheets tasks. We do not provide static libraries (*.lib). Please elaborate your license issues with complete details, sample project, etc. to reproduce the issue on our end. For your information, you only need to set/initialize license once a whole application life cycle, you should put the licensing code at a place (in your program) where it should be processed first before using any other Aspose.Cells or Aspose.Cells.GridWeb, etc. APIs.

How can I include what is in my lic file into my program by hardcoding , instead of reading it from the .lic file using setlicense function.

I am asking this because my server is a shared environment and I don’t want to leave the lic file on the server for anybody else to use it, there is no way of protecting it , except to include as a part of my program.

@fedex167227,

I think you may protect your license file, you should also consider using license file as an embedded resource. Please note that in order to put an extra layer of security when embedding the license with application, you can compress/encrypt license and after that you can embed it into assembly. A free utility DotNetZip (http://dotnetzip.codeplex.com/) can help to fulfill the requirement. Suppose we have Aspose.Total.lic license file, so let’s make Aspose.Total.lic.zip with password test and embed this zip file into the solution. The following code snippet can be used to initialize the license:
[C#]

using (Stream zip = new Program().GetType().Assembly.GetManifestResourceStream("Aspose.Total.lic.zip"))
{
    using (ZipFile zf = ZipFile.Read(zip))
    {
        ZipEntry e = zf["Aspose.Total.lic"];
        e.ExtractWithPassword(ms, "test");
        ms.Position = 0;
    }
} 

Hope, this helps a bit.