Microsoft Office 12.0 Object Library missing

N

Nick Hertl

I have been developing with Office 2007 beta 2 and was using
IRibbonExtensibility.
I just removed Office 2007 beta 2 and installed Office 2007 Professional RTM
only to find that this VBA project no longer compiles because
IRibbonExtensibility is not recognised.

I look at my References windows and wow... "Microsoft Office 12.0 Object
Library" has gone away to be replaced with "Office 8.0 Object Library"

Where did it go? How do I get it back?
 
K

Ken Slovak - [MVP - Outlook]

Navigate to your installation copy of MSO.DLL and remove the old reference
and add that. It's usually in C:\Program Files\Common Files\Microsoft
Shared\Office12\.
 
S

soch

Hi Ken,

I am also having the same problem.

I am developing in VC++. When I go to CAddin->Add->Implement Interface
From Registry.
I do not see Microsoft Office 12.0 object library in "Available type
Libraries". Then I try to add it be selecting "File" and browsing to
office12\mso.dll. I get error this error
Error in OnFinished: Fialed to return new Code Element.

Any help is apprecaited.

Thanks,
TJain
 
K

Ken Slovak - [MVP - Outlook]

Well, I don't do C++ so I can't be specific, but it would seem that would
indicate that either your installation is not complete and something didn't
install correctly or that the Office dll wasn't registered correctly. About
the only things I can think of are to run regsvr32 on the DLL and/or do a
repair of the Office 2007 installation.

I see that you hijacked two other threads with the same question. Maybe
you'll get a more C++ specific answer there.
 
A

Ashok

Hi All,

Already we have a code base of com Add-in in vb 6.0 which supports outlook
2003 or lower. I'm going to change the code to support outlook 2007 and
Outlook 2003 as well.

could you please clarify the following doubts?
1. I want to debug the code in Outlook 2003 and outlook 2007. How can I
manage the ref?
2. If I create the dll in outlook 2007, does it support in all versions of
outlook ?
(Since I have added Outlook 12.0 object which is available only in outlook
2007 env.,). How does it support in lower than 2007?

It would be appreciated for your prompt reply.

Thanks & Regards
Ashok
 
K

Ken Slovak - [MVP - Outlook]

If you compile on Outlook 2007 or use that reference the addin will run only
on that version. The rule of thumb is to develop on and reference the oldest
version you want to support. If I want to support Outlook 2000 and later I
develop on and reference Outlook 2000.

Any properties or methods that were added later can be used using late
binding if you discover you're on a later version of Outlook.

For Ribbon support you'd need to use Dennis Wallentin's (XL-Dennis)
xlRibbon.tlb, reference that and use that interface to handle any Ribbon
callbacks. Google for that tlb or XL-Dennis's blog where he discusses that
tlb and how it was extracted and how to use it.
 
A

Ashok

Hi Ken,

If I add an object(Excel or word or outlook) in late binding, Can I handle
the events for those objects?

Regards
Ashokkumar
 
K

Ken Slovak - [MVP - Outlook]

Not really, you'd only be able to handle events in that version of Excel or
Word that you are referencing.
 
A

Ashok

Hi Ken,

As in the xlDennis if I create the tlb and use it, will it violating
Microsoft EULA ethics?

Even I'm struggling to create a tlb and idl file., could you please guide me
to help me out for the same?

It would be appreciated

Regards
Ashokkumar
 
K

Ken Slovak - [MVP - Outlook]

Dennis's article tells how to extract the interfaces take a look at that.
You can also download his xlribbon.tlb and use that so you don't have to
re-invent the wheel.

I'm not a lawyer or a licensing expert, so I have no idea how using a tlb
like that affects the EULA. Consult a lawyer or some licensing expert for
that information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top