public static void Run()
{
// ExStart:ApplyLicenseUsingFileStream
// Set path of the license file, i.e. c:\temp\
string dataDir = @"c:\temp\";
// Load an existing Visio file in the stream
FileStream LicStream = new FileStream(dataDir + "Aspose.Diagram.lic", FileMode.Open);
License license = new License();
license.SetLicense(LicStream);
// ExEnd:ApplyLicenseUsingFileStream
}