'Library not registered' error creating word.application

J

John Austin

On a customers site, one computer with Word 2003 raises an error when our
application tries to create a Word.Application object. The VB6 line ' Set wd
= New Word.Application'
gives error -2147319779 Automation error Library not registered.

I saw an article that used regtlib to register the Msword.olb library, but
the regtlib.exe file did not exist in the user's Windows folder. I tried
copying regtlib from my PC to his and re-registering Msword.olb - it said
that it was registered, but still the application fails.

My customer has now told me that Office 2007 was previously installed on the
PC and was removed and replaced with Office 2003. Has this a bearing on the
problem?

How can I diagnose and fix this issue?

Many thanks,
 
J

Jialiang Ge [MSFT]

Hello John,

From your post, my understanding on this issue is: you get the error:
2147319779 when the vb6 code runs to Set wd = New Word.Application. Office
2007 was once installed on the pc, then it was removed and replaced with
office 2003. If I'm off base, please feel free to let me know.

As we know, the error 2147319779 means 'Library not registered' according
to the KB article http://support.microsoft.com/kb/186063. Because the pc
was once installed with Office 2007, my suggestion is:
#1. please check the references of the vb project (menu:
Tools->References). Has it referenced to the correct Word library:
Microsoft Word 11.0 Object Library? (11.0 is the current version of Word in
your computer)
#2. If suggestion #1 does not help, I think you need to re-register your
Word 2003 dlls. You may go to Start: Run, and type:
c:\path to your word 2003\Winword.exe /r
This will cause Word to rewrite all of its registry keys with their default
values. When you've done that, double check the Word reference in the vb
project, then try the code again.

If both the suggestions cannot help to resolve the problem, would you tell
me the type of your customer's site? Is it a Retail Solution Site?

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

John Austin

Dear Jialiang,

winword.exe /r did not solve the problem.

Our program is compiled with a reference to the word 2000 dll as we still
have some users with Word 2000, however it works on other machines with 2003
(including mine).

The customer uninstalled "some program with 2007 in the name" and the
problem is now fixed!

Thanks for your assistance - I wish I knew what he uninstalled!
 
S

Steffen

Hey There

I had the same problem. And when I removed â€Microsoft Office 2007 Primary
Interop Assemblies†via the Control panel the error disappeared. Thanks for
pointing me in the right direction.

Steffen
 
M

M J

Same problem here.
I think he uninstalled the Microsoft Office 2007 primary interop assemblies. After I uninstalled that, it worked again...




John.Austi wrote:

Dear Jialiang,winword.exe /r did not solve the problem.
16-Aug-07

Dear Jialiang,

winword.exe /r did not solve the problem.

Our program is compiled with a reference to the word 2000 dll as we still
have some users with Word 2000, however it works on other machines with 2003
(including mine).

The customer uninstalled "some program with 2007 in the name" and the
problem is now fixed!

Thanks for your assistance - I wish I knew what he uninstalled!

--
John Austin


:

Previous Posts In This Thread:

'Library not registered' error creating word.application
On a customers site, one computer with Word 2003 raises an error when our
application tries to create a Word.Application object. The VB6 line ' Set wd
= New Word.Application'
gives error -2147319779 Automation error Library not registered.

I saw an article that used regtlib to register the Msword.olb library, but
the regtlib.exe file did not exist in the user's Windows folder. I tried
copying regtlib from my PC to his and re-registering Msword.olb - it said
that it was registered, but still the application fails.

My customer has now told me that Office 2007 was previously installed on the
PC and was removed and replaced with Office 2003. Has this a bearing on the
problem?

How can I diagnose and fix this issue?

Many thanks,
--
John Austin

RE: 'Library not registered' error creating word.application
Hello John,

From your post, my understanding on this issue is: you get the error:
2147319779 when the vb6 code runs to Set wd = New Word.Application. Office
2007 was once installed on the pc, then it was removed and replaced with
office 2003. If I'm off base, please feel free to let me know.

As we know, the error 2147319779 means 'Library not registered' according
to the KB article http://support.microsoft.com/kb/186063. Because the pc
was once installed with Office 2007, my suggestion is:
Tools->References). Has it referenced to the correct Word library:
Microsoft Word 11.0 Object Library? (11.0 is the current version of Word in
your computer)
Word 2003 dlls. You may go to Start: Run, and type:
c:\path to your word 2003\Winword.exe /r
This will cause Word to rewrite all of its registry keys with their default
values. When you've done that, double check the Word reference in the vb
project, then try the code again.

If both the suggestions cannot help to resolve the problem, would you tell
me the type of your customer's site? Is it a Retail Solution Site?

Sincerely,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Dear Jialiang,winword.exe /r did not solve the problem.
Dear Jialiang,

winword.exe /r did not solve the problem.

Our program is compiled with a reference to the word 2000 dll as we still
have some users with Word 2000, however it works on other machines with 2003
(including mine).

The customer uninstalled "some program with 2007 in the name" and the
problem is now fixed!

Thanks for your assistance - I wish I knew what he uninstalled!

--
John Austin


:

Hey ThereI had the same problem.
Hey There

I had the same problem. And when I removed ???Microsoft Office 2007 Primary
Interop Assemblies??? via the Control panel the error disappeared. Thanks for
pointing me in the right direction.

Steffen

:

RE: 'Library not registered' error creating word.application
It worked for me too :)
Thanks for finding a solution.

ZeXr0

:

Re: 'Library not registered' error creating word.application
wrote:

Many thanks for this it helped me too

Peter


Submitted via EggHeadCafe - Software Developer Portal of Choice
NoSQL, MongoDB Install, Lotus Notes, and CouchDB
http://www.eggheadcafe.com/tutorial...725-3e1c27969596/nosql-mongodb-install-l.aspx
 

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