Hi,
I build a project in visual basic 2008 with reference excel.
I copy the project to my notebook and now I get 15 error.

Warning 1 There are updated custom wrappers available for the following referenced components: Excel ,Microsoft.Office.Core.
Warning 2 Cannot load type library for reference "AxMSChart20Lib". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
Warning 3 Cannot load type library for reference "MSChart20Lib". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
Warning 4 The referenced component 'AxMSChart20Lib' could not be found.
Warning 5 The referenced component 'MSChart20Lib' could not be found.
Error 6 Type 'Excel.Application' is not defined.
Error 7 Type 'Excel.Application' is not defined.
Error 8 Expression is a value and therefore cannot be the target of an assignment.
Error 9 Type 'MSChart20Lib.AxisClass' is not defined.
Error 10 Type 'MSChart20Lib.MSChart' is not defined.
Error 11 Type 'Excel.Application' is not defined.
Error 12 Type 'Excel.Application' is not defined.
Error 13 Type 'Excel.Application' is not defined.
Error 14 Type 'Excel.Application' is not defined.
Error 15 Type 'Excel.Application' is not defined.

can any one help me plz.

Recommended Answers

All 3 Replies

Member Avatar for dmmckelv

Did you ever discover a resolution to this?

For me the problem was like this(I found it latter)
on the first PC 2 versions VB was installed (VB6 and VB2008)
the first copy of the program right down on this PC(with VB2008),
then I copy it to PC without VB6,
Although I write the code in VB2008 it used Librariesof VB6,
so in the secent PC I delect all the Librariesof of VB6 and IMPORT only Librariesof of VB2008

I'm sorry for my bad english

These errors are generated due to the fact that Excel in particular the .DLL's supporting the charting you are using, is not on the new computer that you transferred to.
There is a couple of ways to solve it:
1) Copy the .DLL's needed with the application
2) Make sure Office is installed on the computer, or at least Excel is installed on the computer.

JR

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.