Once you are happy with your evaluation of Aspose.Words, you can purchase a license at the Aspose website http://www.aspose.com/Purchase/Components/Default.aspx. Make yourself familiar with the different subscription types offered. If you have any questions, do not hesitate to contact the Aspose sales team.
Every Aspose license carries a one-year subscription for free upgrades to any new versions or fixes that come out during this time. Technical support is free and unlimited and provided both to licensed and evaluation users.
The license is a plain text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. The file is digitally signed, so do not modify the file. Even inadvertent adding of an extra line break into the file will invalidate it.
You need to set a license before performing any operations with documents. Make sure you do it before instantiating a Document object. It is only required to set a license once per application or process.
Aspose.Words for .NET
The license can be loaded from a file, stream or an embedded resource. Aspose.Words will try to find the license in the following locations:
- Explicit path.
- The folder that contains Aspose.Words.dll.
- The folder that contains the assembly that called Aspose.Words.dll.
- The folder that contains the entry assembly (your .exe).
- An embedded resource in the assembly that called Aspose.Words.dll.
Aspose.Words for Java
The license can be loaded from a stream or file in the following locations:
- Explicit path.
- The folder that contains Aspose.Words jar.
Use the License.SetLicense method to license the component. The easiest way to set a license is to put the license file in the same folder as Aspose.Words.dll and specify just the file name without path as shown in the following example:
Example LicenseFromFileNoPath
Initializes a license stored in a file or in an embedded resource.
[C#]
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Words.lic");
[Visual Basic]
Dim license As Aspose.Words.License = New Aspose.Words.License()
license.SetLicense("Aspose.Words.lic")
[Java]
com.aspose.words.License license = new com.aspose.words.License();
license.setLicense("Aspose.Words.lic");
Example LicenseFromStream
Initializes a license from a stream.
[C#]
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(myStream);
[Visual Basic]
Dim license As Aspose.Words.License = New Aspose.Words.License()
license.SetLicense(myStream)
[Java]
com.aspose.words.License license = new com.aspose.words.License();
license.setLicense(myStream);