1. Nithya Chandrasekar
  2. PowerBuilder
  3. Friday, 18 February 2022 16:30 PM UTC

Need suggestion on disabling add-ins in word document while using OLE. 

Tried something like this just before opening the word document, iole.AddIns.Unload(False), but that did not disable it. 

Thanks in advance.

Pam Koch Accepted Answer Pending Moderation
  1. Tuesday, 22 February 2022 23:19 PM UTC
  2. PowerBuilder
  3. # 1

Adding to Nithya's question - we are specifically trying to disable the Adobe PDF Com Add In.  We can see the add-in using the ole.application.comaddins object, but cannot disable it or prevent it from loading.  Essentially automating the process of unchecking the add-in in Word.

OLE.Application.ComAddins.Item(1).Connect = false  does give an error, so I suspect you may be correct that is a security error.

Comment
  1. John Fauss
  2. Wednesday, 23 February 2022 04:23 AM UTC
I suggest you find a MS Office or MS Word forum and ask if there are security settings that would prevent the Adobe PDF Com add-in from being disabled and if so, also ask for suggestions as to how this can be circumvented. I think you'll have better luck asking these questions in an Office/Word forum instead of a PB forum. Once you know the step(s), check back here if you need help.
  1. Helpful 1
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Friday, 18 February 2022 18:47 PM UTC
  2. PowerBuilder
  3. # 2

According to the Word Object Model reference, that appears to be the proper command. Is it possible you are being prevented from disabling add-ins due to security settings?

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.