473,670 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error when laoding word from vb.net 2005

Hi All

I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail
Merging, by automation

All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP
Pro SP2, Word 2003) I get the following message when I try to launch Word
using the code..
Imports Word = Microsoft.Offic e.Interop.Word

Dim wordapp As Word.Applicatio n = New Word.Applicatio n --- error

'Retreiving the COM Class Factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error
8007045a'

I have uninstalled and reinstalled the .Net programmability option in Word
2003 setup.
The required assemblies are in the GAC on both computers
My app references Microsoft Word 11.0 Object Library

Can anybody help

Regards
Steve
Nov 7 '06 #1
5 1446
Do you have the latest .net framework/visual studio service packs? Make
sure that you have the same versions.

steve wrote:
Hi All

I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail
Merging, by automation

All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP
Pro SP2, Word 2003) I get the following message when I try to launch Word
using the code..
Imports Word = Microsoft.Offic e.Interop.Word

Dim wordapp As Word.Applicatio n = New Word.Applicatio n --- error

'Retreiving the COM Class Factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error
8007045a'

I have uninstalled and reinstalled the .Net programmability option in Word
2003 setup.
The required assemblies are in the GAC on both computers
My app references Microsoft Word 11.0 Object Library

Can anybody help

Regards
Steve
Nov 7 '06 #2
Hello Steve,

As I understand, the VB .NET 2005 application will create a
Word.Applicatio n object, and this works on your laptop, but not on your
desktop. Did you have .NET framework 2.0 and Office 2003 completely
installed on the desktop? More specific, if you check the system registry,
can you find following entry?

HKEY_CLASSES_RO OT\CLSID\{00020 9FF-0000-0000-C000-000000000046}

And, on the desktop, is the application running with a local administrator
account so that it will have enough permission to access this entry in
registry?

Sincerely,

Luke Zhang

Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 7 '06 #3
Hi Rich

Thanks for your reply

I uninstalled Word 2003 then reinstalled and now all works fine

Regards
Steve
"Rich" <RM***********@ gmail.comwrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
Do you have the latest .net framework/visual studio service packs? Make
sure that you have the same versions.

steve wrote:
>Hi All

I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail
Merging, by automation

All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP
Pro SP2, Word 2003) I get the following message when I try to launch Word
using the code..
Imports Word = Microsoft.Offic e.Interop.Word

Dim wordapp As Word.Applicatio n = New Word.Applicatio n --- error

'Retreiving the COM Class Factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error
8007045a'

I have uninstalled and reinstalled the .Net programmability option in
Word
2003 setup.
The required assemblies are in the GAC on both computers
My app references Microsoft Word 11.0 Object Library

Can anybody help

Regards
Steve

Nov 7 '06 #4
Hi Luke

I eventually uninstalled word 2003 then reinstalled and all works now

Thank you for your reply

Regards
Steve
"Luke Zhang [MSFT]" <lu******@onlin e.microsoft.com wrote in message
news:Fe******** ******@TK2MSFTN GXA01.phx.gbl.. .
Hello Steve,

As I understand, the VB .NET 2005 application will create a
Word.Applicatio n object, and this works on your laptop, but not on your
desktop. Did you have .NET framework 2.0 and Office 2003 completely
installed on the desktop? More specific, if you check the system registry,
can you find following entry?

HKEY_CLASSES_RO OT\CLSID\{00020 9FF-0000-0000-C000-000000000046}

And, on the desktop, is the application running with a local administrator
account so that it will have enough permission to access this entry in
registry?

Sincerely,

Luke Zhang

Microsoft Online Community Support
=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

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/subscripti...t/default.aspx.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no
rights.

Nov 7 '06 #5
Hello Steve,

Thank you for the update!

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 7 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
801
by: Baloff | last post by:
Hello I have this linker error which makes me think that the definition file is not being seen by the linker, this code is taken from "Thinking in C++, 2nd Edition, Volume 1, Annotated Solutions Guide" Using Dev-C++ 4.9.9.2, The error is: undefined reference to ‘f(int)’ all the following files are in the same dir. thanks
15
3374
by: Caversham | last post by:
Is there any macro / other tool - free or commercial - that can split long Word docs into multiple XHTML pages? Any comments on the quality/effectiveness of suitable products also welcomed.
6
4739
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
16
7218
by: TD | last post by:
This is the code under a command button - Dim ctl As Control For Each ctl In Me.Controls If ctl.BackColor <> RGB(255, 255, 255) Then ctl.BackColor = RGB(255, 255, 255) End If Next ctl
2
2724
by: Le | last post by:
I'm developing an Add-In for MS Word 2003 with C# VS 2005, every I attempt to build kicking off the wizard that will add-in registers the .NET class with the COM interop I'm getting an error: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2902." I've attempted to just install an empty add in, with no added code to it, still getting the same...
15
2073
by: Charles Law | last post by:
In the build output appears ========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ========== However, the compiler does not generate any errors, and the Errors list is empty. This is an almost trivial program, but the compiler will not compile it and will not tell me where the error is.
0
3530
by: fischermx | last post by:
Environment: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601) Hotfix for Microsoft Visual Studio 2005 Professional Edition - ENU (KB933608) Windows XP, SP2.
2
2112
by: subramanian100in | last post by:
Consider the following program: #include <iostream> #include <map> #include <string> #include <utility> #include <algorithm> using namespace std;
11
5012
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the database, in in both VB6 and VB.NET applications, I got the error "The Microsoft Jet database engine cannot find the input table or query 'myTable'. Make sure it exists and that its name is spelled correctly." Also, I got the error "The...
0
8468
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8901
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8814
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8660
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6213
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5683
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4390
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2041
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.