I want to generate an excel file and send the resulting binary stream through SOAP.
The only problem I got is with the licence file “Aspose.Total.lic”.
I have a solution with a project implementing the IIS host (with a .svc file) and a second project implementing the service contract itself.
How shoud I write this line ? licence.SetLicence(“Aspose.Total.lic”);
I saw that for ASP.Net project you can make licence.SetLicence(server.MapPath(“Aspose.Total.lic”));
But how to do it within a WCF service ?
Thanks for your inquiry.
I think you may try to include the Aspose.Total.lic file as an Embedded Resource in your service solution if it works fine for your case. In your code, you will simply use:
Aspose.Cells.License license = new Aspose.Cells.License();
For further reference, please check the document: http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/licensing.html