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

            // Initialize license object
            Aspose.Xps.License license = new Aspose.Xps.License();
            // Set license
            license.SetLicense("Aspose.XPS.lic");
            Console.WriteLine("License set successfully.");
            // ExEnd:1
        }
Example #2
0
        public static void Run()
        {
            // ExStart:1
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_GettingStarted();

            // Initialize license object
            Aspose.Xps.License license = new Aspose.Xps.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
        }