Hi Aharoun,
The error message usually means that your code is using ChartDirector, but your project does not reference ChartDirector.
When you create a VB project, Visual Studio by default will include a few default assembly references for the VB project. For all other classes (including ChartDirector), to use them, one must add their assembly references to the VB project. If you have installed the assembly's controls into the Visual Studio toolbox, and you drag the controls to the Windows Form, Visual Studio will automatically adds the reference for you, so you can use the controls. For example, if you drag a ChartDirector WinChartViewer control onto a Windows Form, Visual Studio should automatically include the ChartDirector assembly (netchartdir_cp.dll) in the project reference.
However, if you have not drag a control to the form (eg. the Form file you use is copied from another place, not built by yourself), the reference may not be automatically added, and you would need to add the reference yourself.
In VB, you can view existing reference and add new references as follows:
(a) Right click on your VB project and select Properties
(b) In the properties form that pop up, there should be a tab called "Reference". Please choose that tab.
(c) Check if the ChartDirector reference "netchartdir_cp" is already there. If not, please add them by clicking Add/Reference and browse to the "netchartdir_cp.dll" file, and press OK.
Note that before doing any other above, you should have already download ChartDirector for .NET and "unblock" it. (See http://www.advsofteng.com/unblock_zip.html for what is unblocking.)
Hope this can help.
Regards
Peter Kwan |