Ejemplo n.º 1
0
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_GettingStarted();

            // Initialize license object
            Aspose.EPS.License license = new Aspose.EPS.License();
            // Set license
            license.SetLicense("Aspose.EPS.lic");
            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.EPS.License license = new Aspose.EPS.License();
            // Set license
            license.SetLicense("MergedAPI.Aspose.Total.lic");
            // Set the value to indicate that license will be embedded in the application
            license.Embedded = true;
            Console.WriteLine("License set successfully.");
            // ExEnd:1
        }