Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

The type or namespace name 'unoidl' could not be found

Posted on 2011-02-17
17
Medium Priority
?
2,415 Views
Last Modified: 2013-12-17
Hi All,

I have compile error below :

using unoidl.com.sun.star.chart;

The type or namespace name 'unoidl' could not be found

What is the problem ?

Thank you.

0
Comment
Question by:emi_sastra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 8
17 Comments
 
LVL 8

Expert Comment

by:crysallus
ID: 34922651
Did you forget to add the dll containing that namespace to the references for your project?

I've not seen that specific namespace before, so I can't tell you what to add, but I would suggest you need to add whatever dll contains it into your references list, which you should be able to find in your solution explorer.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923048
Hi crysallus,

I have no idea where to get the unoidl.

Thank you.
0
 
LVL 8

Expert Comment

by:crysallus
ID: 34923105
Check this link. It lists a number of dll's at the top which I would guess is what you're looking for, or something similar at least.

http://www.oooforum.org/forum/viewtopic.phtml?t=94558

The source code doesn't actually refer to your specific namespace of unoidl.com.sun.star.chart, so it might be a slightly different dll to the ones listed here, but this may give you an idea of where to start looking at least.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 8

Expert Comment

by:crysallus
ID: 34923165
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923264
Please see this link http://www.codeproject.com/KB/cs/TblProc.aspx

I try to compile it, but get compile error as I mentioned above.

Thank you.
0
 
LVL 8

Expert Comment

by:crysallus
ID: 34923353
As described in the instructions at that link, and the one that I gave you, open the openofficeorg1.cab file (which is part of the openoffice installation download files - I used winrar to open it), and extract the dll's starting with cli_ from within that file to some location on your hard drive where it will be safe to keep them, perhaps your visual studio project folder (I just put them on my desktop to test this, but you probably won't want to keep them there).

Next, right-click on references in your visual studio solution explorer (I have version 2010, hopefully yours is the same) and select Add Reference..., click on the Browse tab, and navigate to those dll's you extracted above. Select them all and click ok.

Now, it should compile.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923449
I have add all the reference, there six dlls.

Please try the link sample project I provide above.

Thank you.
0
 
LVL 8

Expert Comment

by:crysallus
ID: 34923499
Sorry, but I can't. I don't have microsoft office installed, and that project requires it.

I performed the steps from my last post on my own test project, and it compiled fine when including that namespace you mentioned in your original post. So the above steps should fix your original error. If you have further problems, then describe them and I'll see what I can do, but if it relates to microsoft office components, then I may not be able to help you.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923526
- Sorry, but I can't. I don't have microsoft office installed, and that project requires it.
Remove it, nothing will happened.

Thank you.

 
0
 
LVL 8

Expert Comment

by:crysallus
ID: 34923547
What exactly do you mean by remove it? What's 'it'?

That project has many references to office requirements. I don't think it would be very easy just to remove them all.
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923610
My mistakes.

Create a new project.

Insert below code, and see if you could solve the problem.

 using System;
using System.Collections.Generic;
using System.Text;
using unoidl.com.sun.star.table;
using unoidl.com.sun.star.beans;
using unoidl.com.sun.star.sheet;
using unoidl.com.sun.star.text;
using unoidl.com.sun.star.util;

Thank you.



0
 
LVL 8

Expert Comment

by:crysallus
ID: 34923642
Yes, I can compile after adding all those using statements.

Are you still getting the same error, or a different one now? Do you have all 6 cli_*.dll's listed under your references?
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923673
- Are you still getting the same error, or a different one now?
Yes.

- Do you have all 6 cli_*.dll's listed under your references?
Yes.

Would you please send the project to me ?

Thank you.
0
 
LVL 8

Expert Comment

by:crysallus
ID: 34923716
Which version of Visual Studio are you using?
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923752
VS 2008.

Thank you.
0
 
LVL 8

Accepted Solution

by:
crysallus earned 2000 total points
ID: 34923784
This is set to target .NET framework 3.5, created in VC# 2008 express.

I had to delete some files before EE would let me upload, so hopefully it will still work. It includes the dll files.
OOSDKTest.zip
0
 
LVL 1

Author Comment

by:emi_sastra
ID: 34923902
Yes, it works.

Thank you very much for your help.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question