TeeChart5 in Visual Studio 2010

TeeChart for ActiveX, COM and ASP
Post Reply
Enghouse
Newbie
Newbie
Posts: 3
Joined: Fri Nov 18, 2011 12:00 am

TeeChart5 in Visual Studio 2010

Post by Enghouse » Thu Mar 15, 2012 5:00 pm

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

Enghouse
Newbie
Newbie
Posts: 3
Joined: Fri Nov 18, 2011 12:00 am

Re: TeeChart5 in Visual Studio 2010

Post by Enghouse » Fri Mar 16, 2012 1:29 pm

Did anybody else encountered such a problem? Does anybody know what to do to make it work with a .NET2 target?

Thank you,

Enghouse

Enghouse
Newbie
Newbie
Posts: 3
Joined: Fri Nov 18, 2011 12:00 am

Re: TeeChart5 in Visual Studio 2010

Post by Enghouse » Fri Mar 16, 2012 3:21 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeChart5 in Visual Studio 2010

Post by Yeray » Fri Mar 16, 2012 3:22 pm

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply