Page 1 of 1

TeeChart5 in Visual Studio 2010

Posted: Thu Mar 15, 2012 5:00 pm
by 16060793
Hi,

I am using TeeChart5.ocx in a Visual Studio 2010 project on windows 7. The ocx is registered and
everything builds fine when the target of the project is .NET4. However, when the target is different
(I need .NET2; everything else is the same) it doesn't build and gives errors:
The type or namespace name 'AxTeeChart' could not be found (are you missing a using directive or an assembly reference?)

Thank you

Re: TeeChart5 in Visual Studio 2010

Posted: Fri Mar 16, 2012 1:29 pm
by 16060793
Did anybody else encountered such a problem? Does anybody know what to do to make it work with a .NET2 target?

Thank you,

Enghouse

Re: TeeChart5 in Visual Studio 2010

Posted: Fri Mar 16, 2012 3:21 pm
by 16060793
Eventually, with a bit of luck, I got it to work. Copied some older versions of AxInterop.TeeChart.dll and Interop.TeeChart.dll and it now build. The ones I had were presumably the same but obviously something was different. A strange one.

Re: TeeChart5 in Visual Studio 2010

Posted: Fri Mar 16, 2012 3:22 pm
by yeray
Hi Enghouse,

I've just tried it with the Dragging example included with TeeChart AX v5 installation (find it at in the "\Examples\Visual Studio .NET\CSharp\Dragging" folder) and found no problems with a Windows 7 x64 machine and Visual Studio 2010. Well, I only had to upgrade the project (Visual Studio 2010 does it automatically) and make sure it was being compiled in x86 platform in the Configuration Manager because it was trying to compile it in x64 with the Any CPU option (and the ActiveX x64 ocx has just been published recently for the actual version and still in beta stage).

Anyway, I'm glad to hear you worked around it! :D