Exemplo n.º 1
0
 ///<Summary>
 /// SetAsposePageLicense method to Aspose.ThreeD License
 ///</Summary>
 public static void SetAsposePageLicense()
 {
     try
     {
         Aspose.Page.License lic = new Aspose.Page.License();
         lic.SetLicense(_licenseFileName);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }
Exemplo n.º 2
0
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_GettingStarted();

            // Initialize license object
            Aspose.Page.License license = new Aspose.Page.License();
            // Set license
            license.SetLicense("MergedAPI.Aspose.Total.NET.lic");
            // Set the value to indicate that license will be embedded in the application
            license.Embedded = true;
            Console.WriteLine("License set successfully.");
            // ExEnd:1
        }
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_GettingStarted();

            // Initialize license object
            Aspose.Page.License license = new Aspose.Page.License();
            // Load license in FileStream
            FileStream myStream = new FileStream("Aspose.Total.NET.lic", FileMode.Open);

            // Set license
            license.SetLicense(myStream);
            Console.WriteLine("License set successfully.");
            // ExEnd:1
        }
Exemplo n.º 4
0
 ///<Summary>
 /// SetAsposePageLicense method to Aspose.Page License
 ///</Summary>
 public static void SetAsposePageLicense()
 {
     Aspose.Page.License lic = new Aspose.Page.License();
     lic.SetLicense("Aspose.Total.lic");
 }