Aspose::Cells::License::SetLicense method
Contents
[
Hide
]License::SetLicense(U16String&) method
Licenses the component.
void Aspose::Cells::License::SetLicense(U16String &licenseName)
Parameter | Type | Description |
---|---|---|
licenseName | U16String& | The license file path. |
Examples
Aspose::Cells::Startup();
//In this example, an attempt will be made to find a license file named MyLicense.lic
//in the folder that contains
U16String val = u"License.lic";//your license file
License license;
license.SetLicense(val);//your license file
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class U16String
- Class License
- Namespace Aspose::Cells
- Library Aspose.Cells for C++
License::SetLicense(const char16_t*) method
Licenses the component.
void Aspose::Cells::License::SetLicense(const char16_t *licenseName)
Parameter | Type | Description |
---|---|---|
licenseName | const char16_t* | The license file path. |
Examples
Aspose::Cells::Startup();
//In this example, an attempt will be made to find a license file named MyLicense.lic
//in the folder that contains
License license;
license.SetLicense(u"License.lic");//your license file
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class License
- Namespace Aspose::Cells
- Library Aspose.Cells for C++
License::SetLicense(Vector <uint8_t>&) method
Licenses the component.
void Aspose::Cells::License::SetLicense(Vector<uint8_t> &stream)
Parameter | Type | Description |
---|---|---|
stream | Vector <uint8_t>& | A Vector<uint8_t> that contains the license. |
Examples
Aspose::Cells::Startup();
//In this example, an attempt will be made to find a license file named MyLicense.lic
//in the folder that contains
Vector<uint8_t> licData = { 0 };//Gets data from license file into 'licData'(Note: You need to read the data into this variable.).
License license;
license.SetLicense(licData);
Aspose::Cells::Cleanup();
See Also
- Class Vector
- Class License
- Namespace Aspose::Cells
- Library Aspose.Cells for C++