System.Drawing.StringAlignment in TeeChart.Pocket.Dll

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rp
Newbie
Newbie
Posts: 10
Joined: Wed May 31, 2006 12:00 am

System.Drawing.StringAlignment in TeeChart.Pocket.Dll

Post by rp » Wed May 31, 2006 7:01 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 01, 2006 11:45 am

Hi Yannick,

Thanks for reporting.

We could reproduce and find which is the problem. It will be fixed in the next maintenance release.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

rp
Newbie
Newbie
Posts: 10
Joined: Wed May 31, 2006 12:00 am

System.Drawing.StringAlignment in TeeChart.Pocket.Dll

Post by rp » Tue Jun 06, 2006 2:03 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jun 06, 2006 2:40 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

rp
Newbie
Newbie
Posts: 10
Joined: Wed May 31, 2006 12:00 am

System.Drawing.StringAlignment in TeeChart.Pocket.Dll

Post by rp » Tue Jun 06, 2006 3:13 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 09, 2006 11:25 am

Hi Yannick,

A new debug build release has already been posted at our Customer Download Area.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply