1. Gregory Rusak
  2. PowerBuilder
  3. Thursday, 17 October 2019 00:21 AM UTC

Hello Community,

PowerBuilder 2019 R

All Versions of Word

Does anyone have any feedback on why it is that if you open a Microsoft Word Macro-Enabled Template (.dotm) from Windows File Explorer, that you get the expected Security Warning message as follows:

But if you use OLE Automation in PowerScript for example (and sending Edit/0 as the Verb - have tried others):

li_return = dw_enblob_word.OLEActivate(ll_enblob_row, 'word_blob', 0)
IF li_return  < 0   THEN
 PopulateError(100, 'Unable to OLEActivate')
 gnv_app.of_app_error()
 RETURN FAILURE
END IF

It appears that the Security Warning (and button to enable Content) does NOT appear: