Page 1 of 1

WinDev: a valid license could not be granted

Posted: Wed Jun 22, 2011 11:12 am
by 16057982
Hi,
We already use TChart within VS2008, this works correctly.
But now I want to apply TChart within WINDEV(R) (a PCSoft development tool for Windows, DotNet etc.)
Within WINDEV I can refer to .NET assemblies, like TChart.
The compiler recognizes its classes, methods etc., even the automatic name completion works.
But, if I run my program, I get an exception when I create an instance of the TChart object, it tells me that "a valid license could not be granted".

How can I fix this problem?

Thank in advance,
Stef Dekker

Re: WinDev: a valid license could not be granted

Posted: Wed Jun 22, 2011 11:26 am
by narcis
Hi Stef,

That's probably because licenses.licx is not being automatically included in your application as described in tutorial 17. Tutorials can be found at TeeChart's program group. You can check if it's correctly installed in your environment as described here.

Hope this helps!

Re: WinDev: a valid license could not be granted

Posted: Wed Jun 22, 2011 2:25 pm
by 16057982
Hi Narcís,

Thanks for the answer, within VisualStudio everything works fine but I haven't find out yet how the license control works within WinDev, I'll keep on searching...

Stef

Re: WinDev: a valid license could not be granted

Posted: Wed Jun 22, 2011 2:49 pm
by narcis
Hi Stef,

TeeChart licensing mechanism is based in Microsoft's LicenseProvider class. If WinDev doesn't support it and since you are a TeeChart .NET source code customer, you can use the TeeChart assemblies generated from the sources which don't implement licensing control. Alternatively we could give you access to an "unlocked" version of TeeChart assemblies.

Re: WinDev: a valid license could not be granted

Posted: Thu Jun 23, 2011 6:48 am
by 16057982
Hello Narcís,

I did some more reseach on WinDev but there is no mechanism or whatever that supprorts this licensing mechanism. I would be very pleased if we were able to use an unlocked version of the TeeChart assemblies. Can you help us to get access to it?

Thanks in advanced,

Stef Dekker

Re: WinDev: a valid license could not be granted

Posted: Thu Jun 23, 2011 7:21 am
by narcis
Hi Stef,

Yes. Please, write an email to info at steema dot com asking for the "unlocked" assemblies and referencing this thread.

Thanks in advance.

Re: WinDev: a valid license could not be granted

Posted: Thu Jun 23, 2011 1:35 pm
by narcis
Hi Stef,

We would like to run some tests with WinDev here. We have no experience with it. Could you please send us a simple example project with a TeeChart .NET object on it?

Thanks in advance.

Re: WinDev: a valid license could not be granted

Posted: Wed Jun 29, 2011 7:43 am
by 16057982
Hi Narcís,

I already send the asked application twice, using "Upload attachment" but I can't find it in the posting-list on this forum, didn't you receive it?
However I seem to have solved the problem in my test application by placing TeeChart.dll in the folder of the executable, I don't get the mentioned exception anymore. My next challenge is drawing a TChart-graph within my application form.

thanks for your the time,

Stef

Re: WinDev: a valid license could not be granted

Posted: Wed Jun 29, 2011 7:56 am
by narcis
Hi Stef,

No, I can't see any application attached. Once you have browsed for the file you should press the "Add the file" button. Alternatively, files may be posted at the upload page. Thanks in advance.

Re: WinDev: a valid license could not be granted

Posted: Fri Jul 08, 2011 7:16 am
by 16057982
Hi Narcís,
Sorry for the delay in my reaction, but we changed our strategy.
I could solve the license problem just by adding the TChart-dll to the WinDev project map but soon I ran into other problems which had to do with a poor interface between WinDev and .Net.
Now I am using the ActiveX component of TChart (evaluation) which seem to work very well. There is only one strange thing: after a while the language of the TeeChart Editor Panel changed into Japanese. After uninstall and installing again the language and characters stayed Japanese. The about box refers to www.newtone.co.jp and a overlay text tells me every day that this evaluation has 41 days left..
How can I turn the text back into english?

Thanks,
Stef

Re: WinDev: a valid license could not be granted

Posted: Fri Jul 08, 2011 7:46 am
by narcis
Hi Stef,

Is this the latest TeeChart ActiveX evaluation version available at the download area? Did you have any TeeChart ActiveX evaluation version installed before on that machine? Newtone Corporation is TeeChart's distributor in Japan.

Thanks in advance.

Re: WinDev: a valid license could not be granted

Posted: Fri Jul 08, 2011 9:02 am
by 16057982
Hello Narcís,
I use "TeeChart Pro v2010 ActiveX Evaluation". The strange thing is that initially it was in English but at a certain moment it turned into Japanese. If I install the same version on another PC, it is in English. I would say it is a (hidden) language setting in the registry or so?
I it possible that other installation may cause this effect? I also have installed an older Delphi version (7.06) and the .Net-version (2010).

Stef

Re: WinDev: a valid license could not be granted

Posted: Fri Jul 08, 2011 9:26 am
by narcis
Hi Stef,

To set TeeChart language you can right-click on a TeeChart control at design-time, go to Options and set the language back to English. This should then be stored at the registry. However, the newtone about box makes us think that there's a different ocx registered at your machine. I'd search in the windows registry for TeeChart2010.ocx to see whether there's a different ocx registered than the one from steema.com. If that's the case please manually register/unregister ocx using regsvr32 as explained here.

Re: WinDev: a valid license could not be granted

Posted: Fri Jul 08, 2011 12:00 pm
by 16057982
Hello Narcís,
It wasn't easy but I managed to change the language! In my Windev application I couldn't get to the properties.
In the examples I found a VBA example in Excel, I added the TeeChart Chart Editor to it and got acces to the properties. After clicking the right option (in Japanese) I found the language setting and I could even turn it into Dutch!
Thanks, until next chat :wink:

Best regards,
Stef