Page 1 of 1

System.Drawing.StringAlignment in TeeChart.Pocket.Dll

Posted: Wed May 31, 2006 7:01 pm
by 9641429
Hello,

I am experiencing some problems with a name conflict with System.Drawing.StringAlignment where this class can be found in both System.Drawing.dll and TeeChart.Pocket.Dll when I include the TeeChart DLL in my project.

I get the following compile-time error:

The type 'System.Drawing.StringAlignment' exists in both 'c:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll' and '<The path where I placed the dlls>\TeeChart.Pocket.dll'.

I was wondering if you had a fix or a way to work around this conflict.

Please note that when I use the TeeChart.Pocket.Dll from the Evaluation package, I do not get this problem. Also note that I have both TeeChart for .NET v2 2005 & TeeChart for .NET v2 2003 installed on the same machine. I installed both because we are building two flavors of our application with two separate solutions (one with .NET 1.1 and another one with .NET 2.0). The conflict occures with the 2005 version.

Thank you in advance for your help,

Yannick

Posted: Thu Jun 01, 2006 11:45 am
by narcis
Hi Yannick,

Thanks for reporting.

We could reproduce and find which is the problem. It will be fixed in the next maintenance release.

System.Drawing.StringAlignment in TeeChart.Pocket.Dll

Posted: Tue Jun 06, 2006 2:03 pm
by 9641429
Hi Narcis,

Thank you for your help.

I was wondering when you expect the next maintenance release?
Is there a way I can fix this temporarily?

Thanks,

Yannick

Posted: Tue Jun 06, 2006 2:40 pm
by narcis
Hi Yannick,
I was wondering when you expect the next maintenance release?


We will try to have a debug build ready before the end of this week.
Is there a way I can fix this temporarily?
I'm afraid not.

System.Drawing.StringAlignment in TeeChart.Pocket.Dll

Posted: Tue Jun 06, 2006 3:13 pm
by 9641429
Narcis,

For the sake of completeness of this thread, I believe I found a temporary fix for this problem.

In VS 2005 (it works only with .NET framework 2.0), you can configure an alias for an assembly reference. For example, TeeChart.Pocket.Dll reference can be configured to have the alias name "TeeChartAssembly" instead of the usual "global". This can be done through the Properties of the Reference in the project.

Then, when you get to the source file containing the conflicting references, you need to place "extern alias TeeChartAssembly" at the top of the file (must be the first line of code).

Finally, any reference to "Steema.TeeCh....... " should be preceded by "TeeChartAssembly::" as in "TeeChartAssembly::Steema.TeeChart.Styles"

I was able to build using this procedure.

However, I am really looking forward to getting a copy of this maintenance release as this has an impact on our schedule.

Thank you for your help,

Yannick

Posted: Fri Jun 09, 2006 11:25 am
by narcis
Hi Yannick,

A new debug build release has already been posted at our Customer Download Area.