|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Error when laoding word from vb.net 2005I 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.Office.Interop.Word Dim wordapp As Word.Application = New Word.Application --- 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 Do you have the latest .net framework/visual studio service packs? Make
sure that you have the same versions. steve wrote: Show quoteHide quote > 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.Office.Interop.Word > > Dim wordapp As Word.Application = New Word.Application --- 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 Hi Rich
Thanks for your reply I uninstalled Word 2003 then reinstalled and now all works fine Regards Steve Show quoteHide quote "Rich" <RMSUPERSTA***@gmail.com> wrote in message news:1162861898.111662.30780@m73g2000cwd.googlegroups.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.Office.Interop.Word >> >> Dim wordapp As Word.Application = New Word.Application --- 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 > Hello Steve,
As I understand, the VB .NET 2005 application will create a Word.Application 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_ROOT\CLSID\{000209FF-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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. Hi Luke
I eventually uninstalled word 2003 then reinstalled and all works now Thank you for your reply Regards Steve Show quoteHide quote "Luke Zhang [MSFT]" <lukez***@online.microsoft.com> wrote in message news:FeY4UzgAHHA.4432@TK2MSFTNGXA01.phx.gbl... > Hello Steve, > > As I understand, the VB .NET 2005 application will create a > Word.Application 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_ROOT\CLSID\{000209FF-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/subscriptions/managednewsgroups/default.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/subscriptions/support/default.aspx. > ================================================== > > This posting is provided "AS IS" with no warranties, and confers no > rights. > > > 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.
ANN: .NET 3.0 Final
Attach handlers to ToolStripMenuItems. Got stacked, Please Help MDI gets FormClosing but non-Child forms also open do not. Query based on user input Multithread Design Question FOR SALE : Apple iPod 60GB,--------------------$150 Drawing help database selection in deployment Window Combo box Getting an application to be on top of other applications |
|||||||||||||||||||||||