Aspose::Cells::License::SetLicense method

License::SetLicense(const U16String&) method

Licenses the component.

void Aspose::Cells::License::SetLicense(const U16String &licenseName)
ParameterTypeDescription
licenseNameconst U16String&The license file path.

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(const Vector <uint8_t>&) method

Licenses the component.

void Aspose::Cells::License::SetLicense(const Vector<uint8_t> &stream)
ParameterTypeDescription
streamconst Vector <uint8_t>&A Vector<uint8_t> that contains the license.

See Also