1. Balasubramanian Natarajan
  2. PowerBuilder
  3. Tuesday, 28 February 2023 12:00 PM UTC

Hi Team, 

In our PowerBuilder Application, we use the below code to remove the protection from the specified document.

oleObjectVar.Object.Application.ActiveDocument.Unprotect('Hard-coded password')

when the script try to execute the oleObjectVar.Object.Application.ActiveDocument line we are getting the 'Error accessing externa object property error'

How to check the this oleObjectVar.Object.Application.ActiveDocument is valid or not to avoid the error.

Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 28 February 2023 12:35 PM UTC
  2. PowerBuilder
  3. # 1

Hi.

You have an olecontrol on a window? If not try removing the .object from your call.

Andreas.

Comment
There are no comments made yet.
Balasubramanian Natarajan Accepted Answer Pending Moderation
  1. Tuesday, 28 February 2023 12:39 PM UTC
  2. PowerBuilder
  3. # 2

Hi Andreas,

Yes, olecontrol placed on a window.

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.