Support > Forums > OpenBots Studio > Unable to Use MS office Apps

Unable to Use MS office Apps

AKESH KOSHY

  • Reporter
  • Calender Icon April 13,2021 at 8:22 AM

Not able to Access the MS Office APPS . Just after the create Word Application command Bot throws Error . same issue exist for all the office Apps

Source: C:\Users\User\Documents\OpenBotsStudio\My Scripts\Test\Main.obscript, Line: 3, Exception Type: InvalidCastException, Exception Message: Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

This forum has 172 topics, 459 replies, and was last updated 1 hours ago by Poornima Malv

Nataly Alvarado

  • Participant
  • Calender Icon April 19,2021 at 9:01 PM

@Akesh,

Based on the information you shared, the error could be related to the way Microsoft is configured on your machine. Our team of developers has been notified of the issue and will try to replicate it.

Nataly Alvarado

  • Participant
  • Calender Icon April 19,2021 at 8:54 PM

Hello Julio,

Please confirm if you have Microsoft installed on your machine. If that is the case, please share the version of Microsoft that you have installed.

Julio Cesar Piau

  • Participant
  • Calender Icon April 17,2021 at 10:40 PM

Helo!

I'm having problems running Sample Automation. The error message follows:

Source: C:\Users\Bem vindo\Documents\OpenBotsStudio\My Scripts\Teste 2\Main.obscript, Line: 1 Create Excel Application [New Workbook - Visible 'Yes' - Close Instances 'Yes' - New Instance Name 'Teste 2'], Exception Type: InvalidCastException, Exception Message: N�o � poss�vel converter o objeto COM do tipo 'Microsoft.Office.Interop.Excel.ApplicationClass' na interface tipo 'Microsoft.Office.Interop.Excel._Application'. Esta opera��o falhou porque a chamada de QueryInterface no componente COM para a interface com IID '{000208D5-0000-0000-C000-000000000046}' falhou devido ao seguinte erro: Interface n�o registrada (Exce��o de HRESULT: 0x80040155).

AKESH KOSHY

  • Participant
  • Calender Icon April 15,2021 at 8:06 AM

Hi Nataly

Thanks for the response

Not able to access any of the office Apps, for all of them I receive the same above error message. I am attaching office version details

Microsoft Office 365 Business

Version 2002 (Build 12527.21686 Click-to-Run)

Nataly Alvarado

  • Participant
  • Calender Icon April 14,2021 at 5:18 PM

Hello Akesh,

I'm sorry to hear that you are facing this issue. Please, confirm that you cannot interact with any of the Microsoft Office command Groups: Excel, Word, Outlook and that the same error message appears when running Microsoft commands. Also, what version of Microsoft Office do you have installed on your machine?

You are not authorized to reply, please click here to login and add your reply to this topic.