I am using an old version of Steema Teechart for .Net V2. I am attempting to insert a chart into a windows form. When I insert the chart and try to run the application, I get an error that the license.licx object has not been set to an instance of an object.
When I remove the chart and the license.licx file, I now get an error about not being able to find the license.licx in the LC page which doesnt exist ( or that I cant find). It has my application locked up either way I go now.
1. Can someone tell me how to get the chart working.
2. Can someone tell me where it is looking for the license file should I need to remove it in the future.
license issue
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: license issue
Hi phil1995,
I strongly suggest you to read this thread discussing about the very same issue.
Hope this helps!
I strongly suggest you to read this thread discussing about the very same issue.
Hope this helps!
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: license issue
I have done that over and over again with no success. This seems far to complicated to just show a chart on my application. How can I just get it to quit looking for the license so I can just remove everything steema related.Thanks very much for replying so quickly. I tried all of your suggestions without success I am afraid. I then proceeded to remove the reference to TeeChart from my project. I then put it back and I was then able to drag and drop TeeChart components onto my forms. Had to setup all the chart propoerties again and tidy up a few things but have it running fine now.
The TeeChart .NET V3 looks great!
Re: license issue
Hello,
If TeeChart has been installed with the TeeChart installer it adds a design key to the registry to permit designtime use.
Once in Visual Studio, when adding TeeChart to a form for the first time the licenses.licx file is automatically created with the correct contents. That should read similar to this:
When the project is compiled, as long as the registry designtime key exists, the license will be compiled into the application. No license file is then required when distributing the application.
If you have deleted the licenses.licx and wish to recreate it, you can drag a TChart from the Tool palette onto a form and it will recreate the file. You can then delete that Chart if not needed.
If there is still a problem compiling at that stage, please tell us the exact error message and we will advise.
Regards,
Marc Meumann
If TeeChart has been installed with the TeeChart installer it adds a design key to the registry to permit designtime use.
Once in Visual Studio, when adding TeeChart to a form for the first time the licenses.licx file is automatically created with the correct contents. That should read similar to this:
Code: Select all
Steema.TeeChart.TChart, TeeChart, Version= [here putting version number]
If you have deleted the licenses.licx and wish to recreate it, you can drag a TChart from the Tool palette onto a form and it will recreate the file. You can then delete that Chart if not needed.
If there is still a problem compiling at that stage, please tell us the exact error message and we will advise.
Regards,
Marc Meumann
Steema Support
Re: license issue
The problem is, if I delete the file, it gives me an error because it cant find the file. If I leave the file in, it gives me the object not set to an instance of an object error.
Wont run with either instance.
Wont run with either instance.
Re: license issue
Hello,
Does the error occur when you try to build the application, or only when you run it? Please could you post-up the complete text of the error message.
- Is the licenses.licx included in your project as an 'embedded resource'? (select the file in solution explorer to view properties)
- Is TeeChart included as a form visible Chart or are you creating it dynamically at runtime?
With thanks.
Regards,
Marc
Does the error occur when you try to build the application, or only when you run it? Please could you post-up the complete text of the error message.
- Is the licenses.licx included in your project as an 'embedded resource'? (select the file in solution explorer to view properties)
- Is TeeChart included as a form visible Chart or are you creating it dynamically at runtime?
With thanks.
Regards,
Marc
Steema Support