Trail-License activation request

Hi there,

I am quite new to Python because I want to unlock more potential and Aspose.tasks was a main reason to give it a trail.

So I have a 30-day trail version and I installed the package into my python project.

But somehow I can´t activate the license.
I understand, as I will be using one machine do develop an App that will run only on this machine.
So I have set license only once.

But I don´t know how to complete the " When to Apply a License" -step.

Applying the trail license is like applying a perpetual license or which porcess description I have to follow here?
If so, I copied the .lic file into the folder with the aspose,tasks.dll
snipped this code:

Aspose.Tasks.License license = new Aspose.Tasks.License();
2license.SetLicense("license.lic");

and changed “license.lic” to “Aspose.Tasks.PythonVia.NET.lic”
But I get two sytax error due to space between “Aspose.Tasks.License” and “license” and 2nd invalid syntax.

As this is a snipped code from Aspose, I don´t know where to start.

Looking forward to your support and so I can get the complete expericane.

Thx in advance

@Nonixnarretz

The trial license is applied in the same way as a perpetual license.

Prerequisites:

  1. The “Aspose.Tasks for Python via .NET” package is installed in your Python project (package ‘aspose-tasks’ or you can manually download and copy the package from our site. ,
  2. The “license.lic” file is in your Python project’s folder

The following Python code can be used to set the license:

import aspose.tasks as tsk

l = tsk.License();
l.set_license("license.lic")

# Open existing project
prj = tsk.Project("TestProject.mpp")

Hi Vasiliy,

thank you for your quick reply, it´w working now!

BR
Nonixnarretz