To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old Feb 25th, 2008, 04:30 PM   #1
masfenix
Fanatic Member
 
Join Date: Feb 06
Posts: 607
masfenix is on a distinguished road (20+)
Resolved [RESOLVED] Office (excel) Import problem.

just downloaded a export dataset to excel project of codeproject.

While looking at the class the import line
Imports Microsoft.Office.Interop.Excel Code:
    Imports Microsoft.Office.Interop.Excel

has a green squiggly line saying

Quote:
Warning 3 Namespace or type specified in the Imports 'Microsoft.Office.Interop.Excel' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\*\Downloads\Export\Export.vb 4 9 Export
in the middle of the class in a sub i have

The two other warnings include

Quote:
Warning 2 Cannot find wrapper assembly for type library "Microsoft.Office.Core". Export
Quote:
Warning 1 Cannot find wrapper assembly for type library "Excel". Export
how can i solve this
masfenix is offline   Reply With Quote
Old Feb 25th, 2008, 05:10 PM   #2
masfenix
Fanatic Member
 
Join Date: Feb 06
Posts: 607
masfenix is on a distinguished road (20+)
Re: Office (excel) Import problem.

Solved!

WHat happened was that the path to the dll's for the office object library and office excel library were given the wrong paths. I had to re-reference them using the COM tab in "add references"
masfenix is offline   Reply With Quote
Old Feb 25th, 2008, 10:25 PM   #3
toecutter
Fanatic Member
 
toecutter's Avatar
 
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
toecutter is on a distinguished road (10+)
Re: Office (excel) Import problem.

I had that happin to me as well masfenix, i had to apply the lastest excel update which fixed my issue.

ps, please mark resolved
toecutter is offline   Reply With Quote
Old Jun 9th, 2009, 11:21 PM   #4
gnxc
New Member
 
Join Date: Jun 09
Posts: 4
gnxc is an unknown quantity at this point (<10)
Re: [RESOLVED] Office (excel) Import problem.

Hi, i have the same error as the original poster, i am using probably the same code, too

I am at the COMS tab in add reference, but i cannot find anything relating to the "office object library and office excel library" that he mentioned.

Can anyone help? Thanks so much in advance!
gnxc is offline   Reply With Quote
Old Jun 10th, 2009, 11:03 PM   #5
gnxc
New Member
 
Join Date: Jun 09
Posts: 4
gnxc is an unknown quantity at this point (<10)
Re: [RESOLVED] Office (excel) Import problem.

Bump, need help, please. =/
gnxc is offline   Reply With Quote
Old Jun 10th, 2009, 11:15 PM   #6
toecutter
Fanatic Member
 
toecutter's Avatar
 
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
toecutter is on a distinguished road (10+)
Re: [RESOLVED] Office (excel) Import problem.



Check the FAQ in the office forum.

Have you included the appropriate Microsoft.Office.Interop?
toecutter is offline   Reply With Quote
Old Jun 10th, 2009, 11:25 PM   #7
gnxc
New Member
 
Join Date: Jun 09
Posts: 4
gnxc is an unknown quantity at this point (<10)
Re: [RESOLVED] Office (excel) Import problem.

Hmm did you mean this line: Imports Microsoft.Office.Interop.Excel?
If so, yup i have it.
Also i don't know what he means by changing the paths to dll? I can't edit any of the line in that picture you linked.

If anyone was wondering i am trying to get http://www.codeproject.com/KB/vb/Sen...ware_Eng_.aspx
to work so as to implement data export in my own windows application

EDIT: I checked up the FAQ, they only have data export from SQL Server to Excel via ADO (I'm using VB.NET)

Last edited by gnxc; Jun 10th, 2009 at 11:29 PM.
gnxc is offline   Reply With Quote
Old Jun 10th, 2009, 11:29 PM   #8
toecutter
Fanatic Member
 
toecutter's Avatar
 
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
toecutter is on a distinguished road (10+)
Re: [RESOLVED] Office (excel) Import problem.

Have you actually included the Imports Microsoft.Office.Interop.Excel?
Just by adding that line didnt help me.
toecutter is offline   Reply With Quote
Old Jun 10th, 2009, 11:35 PM   #9
toecutter
Fanatic Member
 
toecutter's Avatar
 
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
toecutter is on a distinguished road (10+)
Re: [RESOLVED] Office (excel) Import problem.

Check out Post #3 " .NET"

*edit
Do you have any of these in your debug folder?


If not download the appropriate PIA's for your version and add them to your project.
http://www.vbforums.com/showthread.php?t=422689

Last edited by toecutter; Jun 10th, 2009 at 11:41 PM.
toecutter is offline   Reply With Quote
Old Jun 11th, 2009, 12:00 AM   #10
gnxc
New Member
 
Join Date: Jun 09
Posts: 4
gnxc is an unknown quantity at this point (<10)
Re: [RESOLVED] Office (excel) Import problem.

Ah yeah, i have none of those dll files, heh.
Thanks, I'll go try it out right now.
Also, if i am using Open Office 3.0, which PIAs should i be downloading?

And yeah i have that line in my codes already.

EDIT: I cannot find the Microsoft Office Excel, will i need MS Excel installed on my machine for this? Because i only have Open Office 3.0 Heh

Last edited by gnxc; Jun 11th, 2009 at 12:04 AM.
gnxc is offline   Reply With Quote
Old Jun 11th, 2009, 12:20 AM   #11
toecutter
Fanatic Member
 
toecutter's Avatar
 
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
toecutter is on a distinguished road (10+)
Re: [RESOLVED] Office (excel) Import problem.

That i am afraid i cannot help you with as i have excel.

Have a search for "Do you need excel to reference it" or something like that...
toecutter is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:59 PM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.