|
|
#1 | |||
|
Fanatic Member
Join Date: Feb 06
Posts: 607
![]() |
just downloaded a export dataset to excel project of codeproject.
While looking at the class the import line Imports Microsoft.Office.Interop.Excel Code:
has a green squiggly line saying Quote:
The two other warnings include Quote:
Quote:
|
|||
|
|
|
|
|
#2 |
|
Fanatic Member
Join Date: Feb 06
Posts: 607
![]() |
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" |
|
|
|
|
|
#3 |
|
Fanatic Member
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
![]() |
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 |
|
|
|
|
|
#4 |
|
New Member
Join Date: Jun 09
Posts: 4
![]() |
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! |
|
|
|
|
|
#5 |
|
New Member
Join Date: Jun 09
Posts: 4
![]() |
Re: [RESOLVED] Office (excel) Import problem.
Bump, need help, please. =/
|
|
|
|
|
|
#7 |
|
New Member
Join Date: Jun 09
Posts: 4
![]() |
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. |
|
|
|
|
|
#8 |
|
Fanatic Member
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
![]() |
Re: [RESOLVED] Office (excel) Import problem.
Have you actually included the Imports Microsoft.Office.Interop.Excel?
Just by adding that line didnt help me. |
|
|
|
|
|
#9 |
|
Fanatic Member
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
![]() |
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. |
|
|
|
|
|
#10 |
|
New Member
Join Date: Jun 09
Posts: 4
![]() |
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. |
|
|
|
|
|
#11 |
|
Fanatic Member
Join Date: Apr 06
Location: Brisbane (Australia)
Posts: 946
![]() |
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... |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|