Hi,
We have a compiling error CS0433:
The Type "System.Drawing.Drawing2D.DashStyle" is found as in "c:\Programme\Steema Software\TeeChart for .NET v2\TeeChart.Pocket.dll" as in "c:\Programme\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll".
The same problem occues by application of System.Drawing.StringAlignment class.
How can we solve the problem?
Error CS 0433
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Thomas,
Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
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 |
//Hi,
//it is an improved example for ERROR CS 0433
//Usage:
//GraphicsManager gm=GraphicsManager.getInstance();
//gm.Init(tChart1);
//Fehler 1 The Type "System.Drawing.StringAlignment" is as in "c:\Programme\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll" as in "c:\Programme\Steema Software\TeeChart for .NET v2\TeeChart.Pocket.dll" vorhanden.
//Compiling Error CS 0433 under Visual Studio 2005 Last Release for Windows CE 5.0 Device
using System;
using System.Collections.Generic;
using System.Text;
namespace test
{
public class GraphicsManager
{
private Steema.TeeChart.Pocket.TChart tChart;
Steema.TeeChart.Tools.Annotation title_left;
Steema.TeeChart.Tools.Annotation title_right;
private static GraphicsManager instance = new GraphicsManager();
private GraphicsManager()
{
}
public static GraphicsManager getInstance()
{
return instance;
}
public void init(Steema.TeeChart.Pocket.TChart _tChart)
{
if (tChart != null)
return;
tChart = _tChart;
//Vert. Axes titles
title_left = new Steema.TeeChart.Tools.Annotation();
title_right = new Steema.TeeChart.Tools.Annotation();
tChart.Tools.Add(title_left);
tChart.Tools.Add(title_right);
title_left.Shape.Shadow.Visible = false;
title_left.Shape.Transparent = true;
title_right.Shape.Shadow.Visible = false;
title_right.Shape.Transparent = true;
title_left.Shape.CustomPosition = true;
title_left.Shape.Left = 20;
title_left.Shape.Top = 1;
title_left.Shape.Width = 200;
//Problem!
title_left.TextAlign = System.Drawing.StringAlignment.Near;
title_right.Shape.CustomPosition = true;
title_right.Shape.Left = 480;
title_right.Shape.Top = 1;
title_right.Shape.Width = 200;
//Problem!
title_right.TextAlign = System.Drawing.StringAlignment.Far;
//Problem!
tChart.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Dash;
}
}
}
//it is an improved example for ERROR CS 0433
//Usage:
//GraphicsManager gm=GraphicsManager.getInstance();
//gm.Init(tChart1);
//Fehler 1 The Type "System.Drawing.StringAlignment" is as in "c:\Programme\Microsoft Visual Studio 8\SmartDevices\SDK\CompactFramework\2.0\v2.0\WindowsCE\System.Drawing.dll" as in "c:\Programme\Steema Software\TeeChart for .NET v2\TeeChart.Pocket.dll" vorhanden.
//Compiling Error CS 0433 under Visual Studio 2005 Last Release for Windows CE 5.0 Device
using System;
using System.Collections.Generic;
using System.Text;
namespace test
{
public class GraphicsManager
{
private Steema.TeeChart.Pocket.TChart tChart;
Steema.TeeChart.Tools.Annotation title_left;
Steema.TeeChart.Tools.Annotation title_right;
private static GraphicsManager instance = new GraphicsManager();
private GraphicsManager()
{
}
public static GraphicsManager getInstance()
{
return instance;
}
public void init(Steema.TeeChart.Pocket.TChart _tChart)
{
if (tChart != null)
return;
tChart = _tChart;
//Vert. Axes titles
title_left = new Steema.TeeChart.Tools.Annotation();
title_right = new Steema.TeeChart.Tools.Annotation();
tChart.Tools.Add(title_left);
tChart.Tools.Add(title_right);
title_left.Shape.Shadow.Visible = false;
title_left.Shape.Transparent = true;
title_right.Shape.Shadow.Visible = false;
title_right.Shape.Transparent = true;
title_left.Shape.CustomPosition = true;
title_left.Shape.Left = 20;
title_left.Shape.Top = 1;
title_left.Shape.Width = 200;
//Problem!
title_left.TextAlign = System.Drawing.StringAlignment.Near;
title_right.Shape.CustomPosition = true;
title_right.Shape.Left = 480;
title_right.Shape.Top = 1;
title_right.Shape.Width = 200;
//Problem!
title_right.TextAlign = System.Drawing.StringAlignment.Far;
//Problem!
tChart.Axes.Left.Grid.Style = System.Drawing.Drawing2D.DashStyle.Dash;
}
}
}
Improved example
Hi,
I have just improved the example, it can be tested.
I suppose some classes from System.Drawing was included in
TeeChart.Pocket.dll
Regards,
T.
I have just improved the example, it can be tested.
I suppose some classes from System.Drawing was included in
TeeChart.Pocket.dll
Regards,
T.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Thomas,
Thanks for the code. We have been able to reproduce the problem here and fixed it for the next debug build and maintenance releases.
Thanks for the code. We have been able to reproduce the problem here and fixed it for the next debug build and maintenance releases.
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 |