Adding TeePreviewPanel at Design Time

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Adding TeePreviewPanel at Design Time

Post by nbp » Tue May 15, 2007 7:58 pm

I'm using Visual C++ and TChart ActiveX Control Version 7. I created a dialog and added a TeePreviewPanel at Design Time. I used the Class Wizard to associate a C++ class with the dialog. Then I tried to associate a member variable of that class with the PreviewPanel. I get an error message saying the following
"The ActiveX Control TeeChart Preview Panel v7 has not been inserted into the project. Developer studio will do this now and generate a C++ wrapper class for it"

I have already added the CTeePreviewPanel class to my Visual C++ project. I've also registered the teechart7.ocx component. I'm able to add the TCharts easily at both design and runtime.

So I'm not sure what's going on with the Preview Panel.

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

Post by Narcís » Wed May 16, 2007 7:46 am

Hi nbp,

So, after Visual Studio show you that message, did the application run fine or there was any problem with TeePreviewPanel?

Thanks in advance.
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

nbp
Newbie
Newbie
Posts: 83
Joined: Mon Sep 18, 2006 12:00 am

Post by nbp » Wed May 16, 2007 4:09 pm

I could not add the variable associated with TeePreviewPanel.

I tried a workaround - added the code manully to the .cpp and .h file. Then it worked fine.

The problem is that Visual Studio is not associating the class CTeePreviewPanel (already added to the project) with the component "TChart Preview Panel V7"

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 May 17, 2007 8:11 am

Hi nbp,

Have you tried using ClassWizard and add the new variable for the PreviewPanel at the Member Variables tab? It works fine for me here using v7.0.1.4. Which TeeChart version are you using?
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