Aspose::Cells::License::SetLicense method

License::SetLicense(U16String&) method

Licenses the component.

void Aspose::Cells::License::SetLicense(U16String &licenseName)
ParameterTypeDescription
licenseNameU16String&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

License::SetLicense(const char16_t*) method

Licenses the component.

void Aspose::Cells::License::SetLicense(const char16_t *licenseName)
ParameterTypeDescription
licenseNameconst 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

License::SetLicense(Vector <uint8_t>&) method

Licenses the component.

void Aspose::Cells::License::SetLicense(Vector<uint8_t> &stream)
ParameterTypeDescription
licenseNameVector <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