public void LicenseFromFileNoPath()
{
// Copy a license to the bin folder so the example can execute.
string dstFileName = Path.Combine(AssemblyDir, "Aspose.Words.lic");
File.Copy(TestLicenseFileName, dstFileName);
//ExStart
//ExFor:License
//ExFor:License.#ctor
//ExFor:License.SetLicense(String)
//ExId:LicenseFromFileNoPath
//ExSummary:In this example Aspose.Words will attempt to find the license file in the embedded resources or in the assembly folders.
License license = new License();
license.SetLicense("Aspose.Words.lic");
//ExEnd
// Cleanup by removing the license.
license.SetLicense("");
File.Delete(dstFileName);
}