supporting Multiple version of Tcharts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amit
Newbie
Newbie
Posts: 9
Joined: Mon Oct 15, 2007 12:00 am

supporting Multiple version of Tcharts

Post by Amit » Thu Nov 13, 2008 12:32 pm

Our top level application( desktop.exe) is a .Net container application .
This container host different controls which are build over period of time and use different version of Tchart.
here is the brief history :
• we developed first a control ( contour Chart)using 2.0.2489.20960 version of tchart at that time the container application( desktop.exe) was not complied with licence.licx file and it workes fine.
• Later we developed another control( Bottle neck chart) using 3.5.3188.18560 version of tchart.
While launching application using new control we had license issue so we added licence.licx file in the desktop.exe solution
After adding this licence.licx file the older controls(contour Chart) stoped working . If I remove the tchar.dll ver 3.5.3188.18560 from the folder where Desktop.exe and the Bottle neck chart is located the older application start working. but new application will not work.
Tchart version using 2.0.2489.20960 is in different folder then desktop.exe.
Looks like due to licence.licx file being added to project it is always loading newer version of tchart

Here is how licence.licx files look

Steema.TeeChart.TChart, TeeChart
Steema.TeeChart.TChart, TeeChart
Steema.TeeChart.Web.WebChart, TeeChart

Regards,
Amit

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Fri Nov 14, 2008 12:28 pm

Hello Amit,

We'll test a similar setup to see whether we can provoke a license error. TeeChart version 3 offers a 'plugin-version' that ties the license to the assembly in which it is compiled. Please mail [email protected] with your customer details and we'll make a version available to you. With that setup the container application should continue to authorise the v2 license but the v3 module will be self contained.

In any case we recommend bringing TeeChart versions into line where commonly used in one apllication, if possible.

Regards,
Marc Meumann
Steema Support

Amit
Newbie
Newbie
Posts: 9
Joined: Mon Oct 15, 2007 12:00 am

upgrading Tee chart from 2.0.2489 to 3.5.3188.18560.

Post by Amit » Tue Nov 25, 2008 9:22 am

Marc ,

We are exploring the possibility of upgrading our application from 2.0.2489 to 3.5.3188.18560. We ran into couple of compliation issue .
here is the details . The earlier code has something like this
private Steema.TeeChart.Tools.DrawLineItem rejectHighLineItem;
we are then using like this in code
rejectHighLineItem.EndPos.X = 1.0 ;
and like this
if (!Double.IsNaN(rejectHigh))
{
rejectHighLineItem.StartPos.Y = rejectHigh;
}
now at compile time we are getting following error
"Cannot modify the return value of 'Steema.TeeChart.Tools.DrawLineItem.EndPos' because it is not a variable."
can you suggerst how are we modify our code to do what we were doing earlier .

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Re: upgrading Tee chart from 2.0.2489 to 3.5.3188.18560.

Post by Christopher » Tue Nov 25, 2008 9:29 am

Hello,
Amit wrote: "Cannot modify the return value of 'Steema.TeeChart.Tools.DrawLineItem.EndPos' because it is not a variable."
can you suggerst how are we modify our code to do what we were doing earlier .
This is because StartPos and EndPos have been changed from a field to a property. You can modify the properties in a similar way:

Code: Select all

rejectHighLineItem.EndPos = new PointDouble(1.0, rejectHighLineItem.EndPos.Y);
if (!Double.IsNaN(rejectHigh))
{
rejectHighLineItem.StartPos = new PointDouble(rejectHighLineItem.StartPos.X, rejectHigh);
} 
This change was made to enable EndPos and StartPos to be serialized.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply