1. shai hadashi
  2. PowerBuilder
  3. Monday, 11 December 2023 20:56 PM UTC

Hello,

I don't have much experience with OLE Objects and don't see too many examples online. 

I am using the OLE control and able to get a signature from the TOPAZ signature pad in the IDE. When running the EXE I am getting "Error accessing External Object property". Am I missing something? I saw a few places that mentioned 'Installing the OLE Object". I am not sure how to do that.

I followed this thread and got the code example that was shared.

 

https://community.appeon.com/index.php/qna/q-a/anyone-have-advice-on-collecting-electronic-signatures

 

Here is the window open event script. The TabletState property assignment is where it errors out. It seems like the OLE doesn't work in the EXE but runs fine in the IDE.

 

Thanks in advance,

 

Shai

 

 

//If no signature pad - exit
TRY
    ole_sigplus1.object.TabletState=1
CATCH (runtimeerror er)
    MessageBox("Error",er.GetMessage() ,StopSign!)
    close(w_signature)
     RETURN
END TRY

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 11 December 2023 21:05 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Shai;

  If it works when running under the IDE, then it should work the same when running as an EXE. The only exceptions that I can think to that statement is A) your App EXE is not running as a 32 bit App like IDE or B) your trying to run the App EXE with a different privilege level than what  the PB IDE is using. Food for thought. HTH

Regards ... Chris 

Comment
  1. shai hadashi
  2. Friday, 5 January 2024 20:42 PM UTC
Once I found the 64 bit install files, I used the OCX file to create the OLE Custom Object and it worked with 64 bit EXE.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 5 January 2024 20:49 PM UTC
That is great news Shai - thanks for the update!
  1. Helpful
There are no comments made yet.
shai hadashi Accepted Answer Pending Moderation
  1. Monday, 11 December 2023 22:08 PM UTC
  2. PowerBuilder
  3. # 1

Hi Chris, it was the 32 bits version. We build all App in 64 bits now. Why would it only work for 32 bits? 

Comment
  1. Armeen Mazda @Appeon
  2. Tuesday, 12 December 2023 02:12 AM UTC
64-bit apps need to use 64-bit DLLs, Windows API calls, etc. Please read 64-bit migration guide: https://docs.appeon.com/pb2022r3/migrating_32bit_applications_to_64bit/index.html
  1. Helpful
  1. shai hadashi
  2. Tuesday, 12 December 2023 18:17 PM UTC
Thanks Armeen. I didn't install or setup this OLE so wasn't aware it was meant for 32 bits. I took the code from the Post below. This OLE was never in place when we migrated from 32 to 64. It is a new feature I am trying to implement. If it is a DLL version issue, wouldn't that be part of the application folder?











https://community.appeon.com/index.php/qna/q-a/anyone-have-advice-on-collecting-electronic-signatures







  1. Helpful
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.